New
#1
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
when my USB is plunged or is opened in the file explorer i want a bat file run how would i do this
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 "