On Thu, 28 Sep 2000 22:37:31 +0000 Wolff <[EMAIL PROTECTED]> wrote:

> Hello,
> I am trying to write a batch file that will be distributed on a cd. It looks
> something like this:

> I_view32.exe d:\Pictures\image001.jpg /fs
> exit

> Where the pictures subdirectory is on the CD and the CD drive letter is
> represented by d:. The batch file can be in the root directory of the cd or
> another subdirectory of the cd, but _not_ in the Pictures subdirectory.
> The problem is that not everyone's cd rom drive is assigned a drive letter d:.
> Is there an environment variable that I can use that has the cwd as it's
value?
> Any ideas how to get I_view32.exe to load image001.jpg from the Pictures
> subdirectory regardless of the user's cd-rom drive letter assignment?
> TIA,
> Wolff

Hello Wolff:

Write a batch file making use of "replaceable parameters", as in the
following example:

------ begin DOIT.BAT ----

I_view32.exe %1:\Pictures\image001.jpg /fs

----- end DOIT.BAT ---

In the example above you run DOIT.BAT with a command line parameter where
%1 is the name of the drive letter.  Of course you will want to add to your
batch file some routines for displaying error messages and syntax help also.

All the best,

Sam Heywood
-- This mail sent by Arachne, www graphical browser for DOS
-- Visit the Arachne DOS Browser Home Page, http://home.arachne.cz

To unsubscribe from SURVPC send a message to [EMAIL PROTECTED] with 
unsubscribe SURVPC in the body of the message.
Also, trim this footer from any quoted replies.
More info can be found at;
http://www.softcon.com/archives/SURVPC.html

Reply via email to