[tex-live] [off topic] question about a few details in windows bat files

Reinhard Kotucha reinhard.kotucha at web.de
Wed Jan 26 22:17:21 CET 2011


On 26 January 2011 T T wrote:

 > On 26 January 2011 15:33, Lars Madsen <daleif at imf.au.dk> wrote:
 > > Hi, sorry for the off topic question
 > 
 > You will be forgiven this time ;)
 > 
 > > Now I'm wondering does anyone know why one need to use %~dp0
 > > instead of %cd%?
 > 
 > These two do different things:  %~dp0 expands to the directory with
 > the currently executing script, while %cd% expands to the current
 > directory, which can be off course different.  [...]

I've never seen the environment variable %cd% before.  Is this a real
environment variable which is exported to other processes?  In other
words, is $ENV{'cd'} defined in a Perl script?

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha                                      Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                              mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------


More information about the tex-live mailing list