how do i make a program autostart?

Do you have a technical question that doesn't really fit a specific console? Want some general info on electronics, hacking, making cookies, etc? Here's the place to ask! Go nuts.

Moderator: Moderators

Post Reply
thecheese
Posts: 4
Joined: Sun Sep 07, 2008 4:46 pm

how do i make a program autostart?

Post by thecheese »

How do i make a program thats installed on a USB flash drive autostart when the flash drive is plugged in?
Dr. KillGood
Senior Member
Posts: 2209
Joined: Sat Jan 21, 2006 1:03 am
Location: Earth

Post by Dr. KillGood »

Try putting "-run" after the file's location in properties?
Image
thecheese
Posts: 4
Joined: Sun Sep 07, 2008 4:46 pm

Post by thecheese »

nope that didnt work but thanks anyway.
thecheese
Posts: 4
Joined: Sun Sep 07, 2008 4:46 pm

Post by thecheese »

never mind i figured it out. just type the following into note pad and save it as autorun.inf

[autorun]
open="program name".exe
action=Run "program name" Program

leave out the quotes
Post Reply