Jump to content

Autorun USB flash applications


Recommended Posts

How can i autorun applications or documents when I insert USB drive on slott , with autoit ?

I used the method for cd , it does not work

[autorun]

.....

......

Although there are shareware programs that do that ....

I just wanted to implement it in my autoit scripts .....

Any ideas ?

Link to comment
Share on other sites

I think the Autorun is the only real option, if you have a correct autorun.inf then windows XP will ask you if you want to run the program.

The only other way I can think of is to have a script that runs from the PC which looks for a specific file on the pen drive.

;Autorun.inf file

[autorun]
icon=_system\Icon.ico
action="Open the MP3 Organizer"
Open="MP3Organizer.exe"
label="My MP3 player"
UseAutoPlay=1
shellexecute="MP3Organizer.exe"
Link to comment
Share on other sites

I think the Autorun is the only real option, if you have a correct autorun.inf then windows XP will ask you if you want to run the program.

The only other way I can think of is to have a script that runs from the PC which looks for a specific file on the pen drive.

;Autorun.inf file

[autorun]
icon=_system\Icon.ico
action="Open the MP3 Organizer"
Open="MP3Organizer.exe"
label="My MP3 player"
UseAutoPlay=1
shellexecute="MP3Organizer.exe"

[/quot]

I tried such kind dont work ........

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...