1.

Solve : getting one folder down, take it in a var, g?

Answer»

Hello...

I want to get the full path name of a one folder down the BATCHSCRIPT in a variable and have to be in the folder where the SCRIPT is back.
It is on a network share.
Is there a more elegant way like this: (it looks a bit unaesthetic.)

cd..
for /f %%a in ('pwd') do set installiert=%%a\installiert.txt
cd %~dp0

(OS is NT4)

thanks in advance
uli



Discussion

No Comment Found