?reference current directory in Shortcut

  • Thread starter Thread starter Ross
  • Start date Start date
R

Ross

Problem: I need to run a slide show program off of
removable media, and will not know what drive letter
might be assigned. Program will reside on same removable
media with the pictures in a subdirectory. We are using
this for conferences in which pictures from different
cases are loaded to the subdirectory each week.

I have everything working, except I cannot find a way to
create a shortcut that will allow a reference to a
current directory, not a specific drive letter. I am
using a shortcut, because the program being run is
controlled by a command line.

Perhaps I should lose the shortcut an creat a script
file. I have done bat files on MS-Dos, but not script
files on the current windows operating systems.

Any advice appreciated!!

Thanks,

Ross
 
No idea what you're want to do but the variable %cd% returns the current
drive and directory.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect


:
| Problem: I need to run a slide show program off of
| removable media, and will not know what drive letter
| might be assigned. Program will reside on same removable
| media with the pictures in a subdirectory. We are using
| this for conferences in which pictures from different
| cases are loaded to the subdirectory each week.
|
| I have everything working, except I cannot find a way to
| create a shortcut that will allow a reference to a
| current directory, not a specific drive letter. I am
| using a shortcut, because the program being run is
| controlled by a command line.
|
| Perhaps I should lose the shortcut an creat a script
| file. I have done bat files on MS-Dos, but not script
| files on the current windows operating systems.
|
| Any advice appreciated!!
|
| Thanks,
|
| Ross
 
I was trying to use that in the TARGET property of a
Windows Shortcut, but it does not seem to allow any type
of reference other than a physical drive letter.

Ross
 
Ross said:
Problem: I need to run a slide show program off of
removable media, and will not know what drive letter
might be assigned. Program will reside on same removable
media with the pictures in a subdirectory. We are using
this for conferences in which pictures from different
cases are loaded to the subdirectory each week.

I have everything working, except I cannot find a way to
create a shortcut that will allow a reference to a
current directory, not a specific drive letter. I am
using a shortcut, because the program being run is
controlled by a command line.

Perhaps I should lose the shortcut an creat a script
file. I have done bat files on MS-Dos, but not script
files on the current windows operating systems.

Any advice appreciated!!

Thanks,

Ross

Yeah, I would script it. Use the env var DAve gave you. If you're
familiar w/ DOS scipting, NTx scripting is close enough that you can
pick it fairly easily and there is plenty of help.
 

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

Back
Top