Hello,
Struggling with command line again, I have figure out that I can store the current working directory in a variable like so:
SET current=%cd%
How would I set parent though? SET parent=%..%
does not work, as it echoes %..%
Basically, calling a batch script C:\a\b\myscript.bat
with the following contents:
@echo off
set current=%cd%
echo %current%
prints C:\a\b
and I should like to set a variable parent
so that it would print C:\a
without changing the current working directory to ..
Is this possible?