Solved

enable autorun

Posted on 2008-10-24
3
647 Views
Last Modified: 2010-04-21
vbs code that enable cd autorun for all types of files in vista. as in vista we have to set autorun condition individually for different formats.
0
Comment
Question by:ankur3020
  • 2
3 Comments
 

Author Comment

by:ankur3020
ID: 22801746
if u do not want to reply, then reply code that will enable autorun for setup files i.e exe alteast
0
 
LVL 19

Accepted Solution

by:
weellio earned 250 total points
ID: 22805712
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_23778214.html

from robberbaron:
put this in a file  CO_ON.VBS
reg HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\CDRom /v AutoRun /t REG_DWORD /d 1
this turns CD autorun on, wether currently disabled or not.
it is possible to test for current status but no point.
************************************

i would assume in order to do it for your other devices, you need only find the registry key..

the example above is for cdrom...look in the registry ans see if you have a key in a similar location for USB or the other devices you are curious about.

0
 

Author Closing Comment

by:ankur3020
ID: 31509553
thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction During my participation as a VBScript contributor at Experts Exchange, one of the most common questions I come across is this: "I have a script that runs against only one computer. How can I make it run against a list of computers in …
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question