turn off autorun

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
crashlanding
Newbie
Posts: 4
Joined: Thu May 26, 2005 11:40 pm
Location: Idaho

turn off autorun

Post by crashlanding » Thu May 26, 2005 11:45 pm

I am new to Macro scheduler and looked all through the help file and couldn't find anything on this topic, maybe someone already has the answer to this as they have done it before.

I am trying to copy the contents of a CD to the HDD to compare the contents of another master CD, both CDs have autorun files on them, but I do not want the autorun files to start up and then have to deal with closing them, My question is how do I turn off the autorun capability of the CD driver while in the macro, as I will need to turn it back on at the end of the macro?

Thanks in advance for any help.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Fri May 27, 2005 2:06 am

Do the same way you would do it manually. Here are a couple of outlines that you could fill in.
-------------------------------------------------------------
This may be one process, depends on OS
Go to Device Manager
Goto CD units
Remove checkbox in AutoRun

Do normal macro stuff with CDs

Go to device manager
Goto CD units
Add checkbox back into auto run
-----------------------------------------------
Another method would be to make two reg files, one to turn off, one to turn on. Use these with your macro. The exact registry setting will depend on your OS and possible profiles also.

Execute>AutoRunOff.reg

Do normal macro stuff with CDs

Execute>AutoRunOn.reg
------------------------------------------------
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

crashlanding
Newbie
Posts: 4
Joined: Thu May 26, 2005 11:40 pm
Location: Idaho

Post by crashlanding » Fri May 27, 2005 6:05 pm

Thanks for the info, I can do it that way, I was just hoping that there was an internal windows command for the properties of the drive that I could directly access in the macro -- would save either changing the registry or going manually to the screens to turn it off.

Something like
Let>[nameofdevice].properties.autorun=OFF

Might be a nice feature if possible on a future release.

crashlanding
Newbie
Posts: 4
Joined: Thu May 26, 2005 11:40 pm
Location: Idaho

Post by crashlanding » Fri May 27, 2005 8:14 pm

After doing some research I found an even easier way, when the CD is being inserted do something like this

Press Shift
MessageModal>Insert CD and Press OK
Wait>10
Release Shift

By pressing Shift when the CD is inserted you are temporarily disabling the Autoplay feature.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Fri May 27, 2005 9:52 pm

Nice approach crashlanding.

I had forgotten about holding down the Shift key, and I like the way you built it into the script so the user does not need to do it.

You have earned a long weekend off. Enjoy!
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts