Mail Archives: djgpp/2005/01/15/05:30:18
> From: "JediKnight2" <JediKnight2 AT gmail DOT com>
> Date: 14 Jan 2005 11:57:30 -0800
>
> What I have are two batch files. One is an update to the other.
> Problem is that some computers dont use C: some may use D or E. So
> what I need to do is have my new batch file backup the old batch file,
> easy...then read what the drive letter is that is used and append
> itself or build another batch file that uses the existing drive letter
> with the new commands...
>
> Batch file 1
>
> uses D:
>
> Batch file 2
>
> needs to see that batch file uses d:
> either build another batch file with this info plus the new commands
> OR
> append itself with the appropriate drive letter...
It is impossible to give useful advice about such small-scale problems
with only a general information about the problem. Please consider
posting more details (how about just posting the two batch files?).
First, why do you need 2 batch files? won't a single one do the job?
Second, what does it mean ``some may use D or F''? are we talking
about a special directory, like a place where some software is
installed? If so, is there a method, like some enviironment variable,
to know in advance where that directory is, and what is that method?
- Raw text -