Autorun.inf

D

Dennis Marks

I am creating a CD with all of my pictures. This will be given to someone
with a very limited knowledge of computers. There are many different
subfolders. I want the folder "My Pictures" to open in Windows Explorer when
the CD is inserted. At that point the user can select a subfolder and click
on show slideshow in the left pane. I have created an autorun.inf file that
will start Windows Explorer. I probably need the full path to the folder
that I want to open but that can vary depending on the drive the disk is
inserted into.

The autorun.inf is as follows

[autorun]
open=%SystemRoot%\explorer.exe /select,test

The burned CD will have autorun.inf and "My Pictures" folder at the root
level. I want the autorun.inf file to open "My Pictures" and show all the
available subfolders. What should I put in place of the word "test"?


--
Dennis

Disclaimer: The above is my opinion. I do not guarantee it. Be sure to back
up any files involved and use at your own risk. Batteries not included. Not
for internal use. Don't run with knives.
 
W

Wesley Vogel

%SystemRoot%\explorer.exe /select,%userprofile%\My Documents\My Pictures
will open @ My Pictures

But this is better...
%SystemRoot%\explorer.exe /e,%userprofile%\My Documents\My Pictures

Paste both into Start | Run one at a time and click OK to see the
difference.

You do not need the drive letter for folders on the CD, just the path.

[[Note: By default, the system looks for the file in the root directory of
the inserted disk. If you want to access a file located in a specific folder
or subdirectory, specify a path relative to the root. ]]
from...
Autorun.inf file, What is it?
http://autorun.moonvalley.com/autoruninf.htm

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
G

Guest

If you use an AutoIt script, that can identify the drive the script is
running from.

http://www.autoitscript.com for the compiler.

;The script (untested!)

$cmd = 'start ' & @scriptdir & '\My Pictures\'
Run($cmd)

; (Note the space after start, it's important)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top