You are here

Autorun

7 posts / 0 new
Last post
nicholas.alipaz
Offline
Last seen: 16 years 6 months ago
Joined: 2008-05-14 19:00
Autorun

Is there a way to have more than one option using the autorun.inf with autorun.bat?

two scenarios:

1: open these apps
2: open those apps

???

Dagenham
Dagenham's picture
Offline
Last seen: 2 years 1 month ago
Joined: 2007-03-23 06:19
Via Autorun

If I understand cleary, you want the opportunity to open two different sets of applications, right? It's possible, you have to create two batch files (application set 1, application set 2), then modify your autorun.inf file as follows:

shell\appset1=Start Application Set 1
shell\appset1\command=appset1.bat

shell\appset2=Start Application Set 2
shell\appset2\command=appset2.bat

Instead of batch files, you can write simple NSIS scripts, if you familiar with those.

nicholas.alipaz
Offline
Last seen: 16 years 6 months ago
Joined: 2008-05-14 19:00
Thanks for the response,

Thanks for the response, that looks to be exactly what I am looking for. What is the advantage of using an NSIS script over a batch file?

If it is significantly better then will go that route.

Dagenham
Dagenham's picture
Offline
Last seen: 2 years 1 month ago
Joined: 2007-03-23 06:19
Pro/Kontra

Advantages:
- no black console window upon executing (however, hstart is an alternative too)
- a possibility of the more sophisticated program control

Disadvantages:
- you have to recompile the script after you edit it
- the executable is slighlty larger than a single .bat file

That's all I guess.

nicholas.alipaz
Offline
Last seen: 16 years 6 months ago
Joined: 2008-05-14 19:00
Actually, now that I look

Actually, now that I look deeper into it, that seems to create extra context menu items for the usb drive, am I wrong?

If this is correct, that is not quite what I am after. I would like to be able to add another icon in the autorun window that pops up when inserting the drive.

Icon 1: Open My Apps
Icon 2: Open My OTHER Apps

Thanks again for your time

Dagenham
Dagenham's picture
Offline
Last seen: 2 years 1 month ago
Joined: 2007-03-23 06:19
Not possible

I'm afraid this is not possible - the autorun window only able to display the one and only entry from your autorun.inf file, the one you specified with "open", as far as I know.

nicholas.alipaz
Offline
Last seen: 16 years 6 months ago
Joined: 2008-05-14 19:00
Thanks for letting me

Thanks for letting me know..

IMO this would be a really nice customization if anyone can figure out a solution in the future.

Log in or register to post comments