PDA

View Full Version : Solved: Autorun CD



mdmackillop
10-06-2006, 07:38 AM
Anyone have some script I can write in autorun.inf which will run an excel file on my CD?

mvidas
10-06-2006, 07:59 AM
One way (if you dont want to include a program like shellrun.exe on the cd):
[autorun]
open=autorun.batand
@"c:\program files\microsoft office\office\excel.exe" "file 1.xls"
I think you can probably also do things like
[autorun]
shellexecute=file1.xlsBut I don't think it will work if there are any spaces in the filename

Charlize
10-06-2006, 11:37 AM
Take a look at this. Free for personal use. Can even make a menu with options ... http://www.autoruntools.com/express/

Charlize

Ivan F Moala
10-07-2006, 05:20 AM
try

[autorun]
open=RunDLL32.EXE shell32.dll,ShellExec_RunDLL C:\ExcelFiles\Useful\RGB_.xls


where C:\ExcelFiles\Useful\RGB_.xls is the fullpath to the file

mdmackillop
10-07-2006, 08:43 AM
Thanks Ivan
Works a treat. My file is on the CD, so I'm using

[autorun]
open=RunDLL32.EXE shell32.dll,ShellExec_RunDLL ViewFiles.xls

It's so obvious when you point it out! :rotflmao:

mdmackillop
10-07-2006, 08:48 AM
Hi Matt,

I was having problems which I put down to the spoaces in the name.

Charlize,
It looks a useful link but I was looking for a "simple" solution which Ivan has kindly supplied.