Click to See Complete Forum and Search --> : Autorun


webdev07
10-29-2007, 08:47 AM
I have created an autorun.inf file which works perfectly i was just wondering if it is possible to run two files from this auto run file rather than just the one. the other file will be a readme text file if this helps

thanks in advance

Webdev07:rolleyes:

TJ111
10-29-2007, 08:58 AM
I know you can add addition shell commands to the autorun file, although I have never done alot of work using autorun.inf . I know when creating bootdisks you can run as many programs as you want as long as you list them in the autoexec.bat, but I think autorun is different. You could try either using the program called to open the file, or try to use addition parameters via the shell commands to open it.

webdev07
10-29-2007, 09:18 AM
[AutoRun]
shellexecute=\website\Website.hta.lnk
icon=\website\images\insiteicon.ico

[AutoRun]
shellexecute=\website\Read Me.txt

I have tried using this but have had no joy?

TJ111
10-29-2007, 09:31 AM
[AutoRun]
Open=\website\Read Me.txt
ShellExecute=\website\Website.hta.lnk
icon=\website\images\insiteicon.ico

Try something like that.

webdev07
10-29-2007, 09:38 AM
[AutoRun]
Open=\website\Read Me.txt
ShellExecute=\website\Website.hta.lnk
icon=\website\images\insiteicon.ico

Try something like that.

Just tried this an I now lose the auto run function which runs automatcially and and now given the windows xp auto run prompt even though i choose to run the program only the website.hta.lnk opens?
Do you have any more suggestions?:confused:

Thanks for your help

TJ111
10-29-2007, 09:52 AM
Try giving this software (http://rbytes.net/software/autorun-inf-editor-review/) a look. It's open source and in one of the pictures it shows adding a readme.txt to the autroun.inf file. At least see how it outputs it so you know. Like I said I haven't spent much time with autorun, so I'm probably not as much help as youd hope. It looks like they add the command notepad.exe before the autorun.inf

webdev07
10-30-2007, 08:41 AM
Bump, anybody else?

ray326
10-30-2007, 12:42 PM
You might want to try a more Windows-specific forum like Dev-X.