Autorun Anything Off of a Usb Key
Intro: Autorun Anything Off of a Usb Key
Make any usb key (pendrive/mass storage device ect.) autorun anything that you want (windows only)
Dead simple, only common sense required.
(btw this is my first instructable. tips are gladly welcome.)
AND PLEASE don't use this for bad purposes.
Dead simple, only common sense required.
(btw this is my first instructable. tips are gladly welcome.)
AND PLEASE don't use this for bad purposes.
STEP 1: Get the Stuff
first off we need a couple things:
- a usb key/storage device
- microsoft notepad (comes with windows, is needed because other word processors add extra coding)
- a program/batch file/whatever you want that can launch
when you have all that, copy/install whatever you want to your usb key
- a usb key/storage device
- microsoft notepad (comes with windows, is needed because other word processors add extra coding)
- a program/batch file/whatever you want that can launch
when you have all that, copy/install whatever you want to your usb key
STEP 2: Lets Make the File
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 "
example of what it would look like to launch firefox portable that was just installed:
(Autorun)
Open=FirefoxPortable\FirefoxPortable.exe
Action=Start Firefox Portable
Label=MY USB
Icon=FirefoxPortable\FirefoxPortable.exe
the image below shows the directory of Firefox Portable on my usb key
"(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 "
example of what it would look like to launch firefox portable that was just installed:
(Autorun)
Open=FirefoxPortable\FirefoxPortable.exe
Action=Start Firefox Portable
Label=MY USB
Icon=FirefoxPortable\FirefoxPortable.exe
the image below shows the directory of Firefox Portable on my usb key
STEP 3: Hide It
Hiding the file will not make it visible (duh) so that it cant be deleted accidentally.
now go to the file, and right click it, and click "properties"
in the attributes section check the box beside "hidden" and click apply.
now go to the file, and right click it, and click "properties"
in the attributes section check the box beside "hidden" and click apply.
STEP 4: Try It
remove the usb key, and plug it back in. If all was done right it should Autorun. If not just double click the usb key icon in my computer and it should launch! There you have it.
NOTE: If you do have other things on your usb key that you want to access, right click the usb icon in my computer and click "open"
NOTE: If you do have other things on your usb key that you want to access, right click the usb icon in my computer and click "open"
63 Comments
Nemraiku 7 years ago
Or you can buy a usb rubber ducky
sirrfuzzda 1 year ago
totallynotaliens69 2 years ago
Azulnessa 8 years ago
This trick shouldn't work on any computer running windows 7 and up. Does anyone know if it will?
JinwooH 5 years ago
I'm on Windows 10 and it didn't work for me...
calebhk98 7 years ago
It doesn't work on my Win 10
GerhardsJ 6 years ago
me to
CalumGC 7 years ago
I am not sure, but try replacing (autorun) with [autorun]
JinwooH 5 years ago
It didn't work for some reason...
MaltheTheGamerRM 6 years ago
Is the Firefox Portable just a disguise? Or does it autorun the file?
Cold Eye 6 years ago
LegendBuilder 6 years ago
only if your know either the format of the file or the name. use this for reference..
https://www.online-tech-tips.com/software-reviews/automatically-delete-files/
just attach the batch file to auto run. \hope that helps
LegendBuilder 6 years ago
how do I make it so that it pursues one command then the other and text in front of image so that text is transparent and back image in full screen.
GraysonS2 8 years ago
Im confused Im doing a simple .bat file but there is no company that made it so I put in a random name for the parts tht said portableapps is that ok
BenjaminK15 6 years ago
Yes, it is. In fact, you can just delete the lines for the name and icon. Windows will just use the default name and icon.
Răducu'sC 6 years ago
On newer versions of Windows the program run will not work, sadly :(
But you can specify a Icon like this:
[Autorun]
Icon=icon.ico
westfw 16 years ago
PerfectlySquare 16 years ago
dark-shot666 16 years ago
cry_wolf 16 years ago