Solved

enable autorun

Posted on 2008-10-24
3
651 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Hello again, all.  For those of you that have been following along, you'll know that this is my third article on this topic (though it is not Part III).  This article is sort of remedial, and probably the topic with which I should have started the s…
Welcome, welcome!  If you are new to the series and haven't been following along, please take a brief moment to review the first three installments: Part 1 (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/A_266-VBScri…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

728 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