Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: USB autorun

24 Oct 2013   #1
philip95

Windows 7 Pro 32 bit and windows xp pro 32 bit and windows 98 SE
 
 
USB autorun

when my USB is plunged or is opened in the file explorer i want a bat file run how would i do this


My System SpecsSystem Spec
.
24 Oct 2013   #2
archer

Windows 7 ultimate x64
 
 

Try this,

open notepad and type:

"(Autorun)
Open=(directory of program\program name.file extention)
Action=Start (Name of program if wanted)
Label=(what you want the label to say)"

without " "s.
if you want the icon as well, add "Icon=(director of program\program name).exe"
so it would look like:

(Autorun)
Open=(directory of program\program name.file extention)
Action=Start (Name of program if wanted)
Label=(what you want the label to say)
Icon=(directory of program\program name).exe

swap out the brackets "( )" around 'autorun' with square brackets ""


afterwards, save it as "Autorun.inf" in the root of your usb key.

MAKE SURE THE FILE EXTENTION IS " .inf "
My System SpecsSystem Spec
Reply

 USB autorun




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
DVD/CD won't autorun
I'm pretty sure I have set all the options so that the disks _ought_ to autorun but they won't. I have to go into Powerdesk (File Manager) and select a vob file. I' installed a codec package but that made no difference. I have had problems with this drive, Samsung TSST CDDVDW 288BB, in fact...
Hardware & Devices
No Autorun?
OK, so I'm not sure why this is happening... For some reason it seems that autorun prompts are entirely disabled on my laptop, I'll put in a CD and nothing happens, I plug in a hard drive and nothing happens, etc. I don't get the options window like I did before I did a clean install. I even...
General Discussion
Windows7-Autorun
Hello I would like to know how to set the Autorun on TSSTcorp DVD+-RW TS-H653G Drive. When i put in the CD or DVD i want it to run. I have to click on my computer and then go to the set up folder to make it run. Thanks for your help:geek:
General Discussion
How to Autorun USB on Win 7
Hi, I want to make a USB flash drive auto run a website link in Windows 7. I know the auto run function has been removed in Win 7, but can I at least make a pop up window appear whenever a USB flash drive is inserted in the PC and have the user the option to click and open the link??? ...
Software
USB autorun in W7
Ok, I know this is a sore subject, but are there any work-a-rounds to get handy programs like PortableApps to at least be an option to run when you plug it in? It kind of defeats the purpose of the whole thing. I'm not plugging in rogue USB sticks from strangers in dark alleys, just my own USB...
General Discussion
Autorun.dll
Is missing or corrupted.. anyone have this prob..? I have dl'd and burned the iso 2x and have the same prob. let me say that in order to burn iso..i have just renamed the longnamed file to (the longname).iso i have been dl'ing it with ff and it is adding a ,dlm to the file and i have just been...
Installation & Setup


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 17:19.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App