USB autorun

philip95

New member
Member
Local time
10:34 PM
Messages
66
when my USB is plunged or is opened in the file explorer i want a bat file run how would i do this
 

My Computer

OS
Windows 7 Pro 32 bit and windows xp pro 32 bit and windows 98 SE
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Bulid/Self made
OS
Windows 11 x64
CPU
i5 2500K @ 3.3 GHz
Motherboard
ASUS P8 Z77 V pro
Memory
16 GB DDR 3 @ 1600Mhz
Graphics Card(s)
MSI 1050TI 4GB OC version
Sound Card
On Board (Realtek HD audio)
Monitor(s) Displays
Samsung 22" LCD
Screen Resolution
1920*1080
Hard Drives
Seagate 1 TB, WD 1TB, Seagate 2 TB ( I use a lot of space)
PSU
coolermaster 750 W
Case
Coolermaster HAF912
Cooling
Coolermaster hyper 212 EVO
Keyboard
Samsung
Mouse
Dell Wireless
Internet Speed
Wireless 50 Mbps
Antivirus
AVG 2016 Internet Security
Browser
Google Chrome
Back
Top