Step 3: An Autorun file with extra Commands

The previous steps just messed with the name, icon, and actions of the USB drive. Now, I will show you how to add extra commands to the USB drive. These commands will show up when you right-click on the USB drive.

If you lose your USB drive often, you should 1) buy a keychain for it and 2) add this to your Autorun file:

shell\lost=Help! I'm Lost

NOTE: This command is not only for a lost USB drive. You can make it anything you want.

shell\lost\command=: This is the file that will open when you click on the "Help! I'm Lost" command.

shell\lost=: This is what the name of the command is. Look at the picture for more information.

Also, the computer does not have a file called "Lost.bat" already on it (duh). You will have to make one. This is some good code for the batch file:

@echo off
title Please Return Me!
echo I have been lost! Please return me to my owner!
echo 1234 Second St. Small Town, America, 12345
echo 1-555-555-5555
echo return-me-please@gmail.com
goto top

I have written this code so that if someone presses a key (like the file asks you to, see the screenshot), it will simply repeat itself! It will continue to do this untill the finder of the drive closes out of the CMD window.

PLEASE make sure that you replace the info with your actual address, phone number, and email (unless you happen to live at 1234 Second Street, Small Town, America, 12345).

There are countless possibilities that you can place here. Also, you can insert more than one, so you could have a "Help Me" option, a "Hello" option, and a "Destroy the Earth" option. Have fun with that (and be legal!).
<p>OKAY. Let me explain something to you. autorun cannot start programs in windows 7 and up. There is no way around it. i tried every trick you guys put in comments, none of them work. the only way to autorun is to download an application that permits it ON YOUR COMPUTER ONLY.</p>
you guys are all saying that it doesnt work on windows 7 and 8 but can someone please post a way to pass the security of windows?
<p>you need to convert him to cd format or it won't work</p><p>this is how you do it but first save your file for limited files on your pc becouse it wil be cleaned too</p>
<p>Microsoft disabled the autorun.inf features(not all of them, but most of them) due to security issues, the only way to bypass it would be to write a script on the computer itself that would<br>1)check for connected devices<br>2)check for a specific file on those devices(such as &quot;autorun.dll&quot;)<br>3)open/run that file</p><p>---</p><p>You would have to have that script installed and running on any computer that you would want to bypass the security system for.</p>
<p>... No XP either.</p>
how do i put more than one open=open.exe in the autorun file?
<p>write in the file</p><p>open=open1.exe<br>open=open2.exe</p>
<p>At least I managed to do step one which could be useful, sadly I wasn't able to give the option for autorun a file which would have been useful, from what it looks like it might be because I am doing this on Windows 7.</p>
Here is my auto run, <br>[Autorun] <br>Icon=usb.ico <br>Open=Portable Apps\StartPortableApps.exe <br>Action=Start PortableApps <br>Label=PierreFouquet <br> <br>although i cannot open the program with it, <br>my usb is on my F: drive, and the dir of the files is correct, i have made sure, whats wrong?
<p>Open=usb\directory of exe.file</p>
Simple to explain,<br><br>An autrun file has been created for optical drives like cd-roms and dvd-roms. These days these files are still used to install applications from optical drives and are autrun files on flash drives used only to show manufactorers icons.
the problem is windows 7, they took the (they being MS) fuctionality out, for security reasons, i am running it currently, so if you have Win7 you can use autorun, Vista n XP still can
<p>I did it!</p>
<p>Hey guys! i am trying to make an autorun.inf file of a batch file the coding of autorun.inf is this </p><p>[autorun] </p><p>icon=jatin bal.ico </p><p>label=Removable Disk </p><p>open=JB Anti-Virus.bat </p><p>action=Mouse Disable</p><p>and it is not working (i am using win 7 &amp; win 8) only it changes the drive name and icon do not autorun the file. can anybody tell me what happen. Please help me!</p>
<p>Hey guys! i am trying to make an autorun.inf file of a batch file the coding of autorun.inf is this </p><p>[autorun] </p><p>icon=jatin bal.ico </p><p>label=Removable Disk </p><p>open=JB Anti-Virus.bat </p><p>action=Mouse Disable</p><p>and it is not working (i am using win 7 &amp; win 8) only it changes the drive name and icon do not autorun the file. can anybody tell me what happen. Please help me!</p>
<p><a href="mailto:quickwebhack@gmail.com" rel="nofollow">quickwebhack@gmail.com</a></p><p>U Need Any Help ?</p><p>*University grades changing <br>*Bank accounts hack <br>*Twitters hack <br>*email accounts hack <br>*Grade Changes hack <br>*Website crashed hack <br>*server crashed hack <br>*Retrieval of lost file/documents <br>*Erase criminal records hack <br>*Databases hack <br>*Sales of Dumps cards of all kinds <br>*Untraceable Ip <br>*Individual computers hack <br>*Websites hack <br>*Facebook hack <br>*Control devices remotely hack <br>*Burner Numbers hack <br>*Verified Paypal Accounts hack <br>*Any social media account hack <br>*Android &amp; iPhone Hack <br>*Word Press Blogs hack <br>*Text message interception hack </p><p>*email interception hack</p><p>- See more at: <br></p><p><a href="mailto:quickwebhack@gmail.com" rel="nofollow">quickwebhack@gmail.com</a></p>
<p>[autorun]</p><p>Open=DHCA-TV.mp4</p><p>Icon=My_Icon.ico</p><p>ShellExecute=DHCA-TV.mp4</p><p>UseAutoPlay=1</p><p>Why nothing happend even if all setup is already allowed (I use win 8) ?</p><p>Want to make autorun for TV. So, I just plug the usb, it will run automatically.</p><p>Please help, thanks....</p>
<p>OPen and ShellExecute cannot open multimedia files.</p><p>binary files only.</p>
<p>Windows 7 has prevention for Autorun script. So that's why you can't use this method.</p>
<p>Well, I can get the Autorun Label and Icon properties to work, but the Open and Action commands are not working. </p><p>[AutoRun]</p><p>icon=.\H.ico</p><p>label=Stamboek</p><p>action=Open Menu</p><p>open=.\SBookMenu.exe</p><p>This may have something to do with the fact that I'm opening it from an SD card...? Any suggestions?</p>
<p>I have made an autorun.inf to fun an application on my USB automatically ,but it does not work on Win7.......Is there a solution???</p>
<p>For some reason my open, action, and shell command won't work.</p><p>[AutoRun]</p><p>Icon=Mathijssen-Tuxlets-Balloon-Tux.ico</p><p>label= 2gb </p><p>open=scratch\2d_brawler.sb</p><p>Action=Start scratch</p><p>shell\lost\command=Lost.bat</p><p>shell\lost=Help! I'm Lost</p>
<p>I'm PRETTY certain that open was removed in win 7 for security reasons, however I'm unsure of the rest.</p>
<p>HI guys,</p><p>I am using windows 8, I want to run AppName application(.exe) while insert a Pen drive on my pc. </p><p>This is my autorun.inf file in Pen drive.</p><p>Here i notified that label, icon are displayed. But the exe is not executed. (Open Command doesn't work for me)</p><p>[autorun]</p><p>label=LAVA</p><p>ICON=.\DESK.ico,0</p><p>open=AppName.exe </p><p>Any suggestions please.....???</p>
Starting from windows 7 autoplay from Removable disks have been restricted due to security purposes everything but the icon and label line is ignored.... <br>It still works with CD/ROMS
Windows 7 prevents the use of custom autruns as it makes viruses extremely easy to spread virus and stuff/thangs.
the autorun not working for me.WHY?????????
The problem is windows 7, I tried on win XP and it worked fine, it also works for vista
The icons are fine but this isnt working, please help
This isnt working <br>I created an autorun like this: <br>[autorun] <br>label=gta_san <br>icon=icon.ico <br>shell\lost\command=Autorun.exe <br>shell\lost=Install
Thanks, this information was very helpful, <br> <br>Can you make an instructable on &quot;How to Create Log Files&quot; <br>I'll be very thankful my email is: carljhonson623@gmail.com <br>Thanks
how to make autorun of devicon.fil and devlogo.fil files????? <br>
Hello I m new out here . <br>Can v make 2 autorun files in a single pendrive
my auto run:<br><br>[autorun]<br>open=beaboss.exe<br> action=Be a boss!<br>icon=HD Box2.ico<br>label=MurphDrive<br><br>Wy won't it run?
action=Be a boss!<br><br>You are not allowed to use strange characters in this small batch script.<br>Thats why it dont works.
was wodering if u knew how to make auto run open a .exe on the usb and by the way great interstruable
fix your grammar, &quot;wodering, interstruable&quot; really? I'm thirteen and I have better grammar than you, sad.
spelling. fix your spelling. *facepalm..... silly thirteen year old
Ba, too true. As unfortunate as that is. I wonder how he even gets on here with spelling like that.
While you are on a grammar kick, furry, you should really combine your first two &quot;sentences&quot; into one parenthetical idea. Observe:<br><br>&quot;Ba, too true. As unfortunate as that is.&quot; now becomes: Ba, too true (as unfortunate as that is).<br><br>As your comment stands, the second sentence: &quot;As unfortunate as that is.&quot;, is a fragment.<br><br>Have a nice day.
Besides, this was almost a year ago.
I shouldn't have said some of the stuff I previously said and I am now almost fourteen and can see what a stupid seventh grader I was being at the time. I now am much smarter and I tend to be nicer too.
No need to be a ___ about it. He is probably from another country.<br>
I guess you are right, well at least I hope that. I shouldn't have been so harsh.
I made a program in Visual C# that makes these files for me.. :D<br />
can you send me instrunctions or an installer for that program or something, i dont get any of the autorun stuff, so it would help so much, email me at: sme272@hotmail.com
my autorun wont let me open files
Mine won't either. :/ ???
The problem is once you have made the autorun.inf file, pull your drive (like a flash drive) out of the computer and stick it back in.

About This Instructable