Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: getting one folder down, take it in a var,  g  (Read 2386 times)

0 Members and 1 Guest are viewing this topic.

uli_glueck

  • Guest
getting one folder down, take it in a var,  g
« on: August 23, 2006, 02:04:36 AM »
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
« Last Edit: August 23, 2006, 02:45:40 AM by uli_glueck »