Solved

enable autorun

Posted on 2008-10-24
3
641 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
Comment Utility
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
Comment Utility
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
Comment Utility
thanks
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Recently I finished a vbscript that I thought I'd share.  It uses a text file with a list of server names to loop through and get various status reports, then writes them all into an Excel file.  Originally it was put together for our Altiris server…
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 this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now