As in a batch file set variable level up
I need in a batch file set above the path level. For example, I have the following folder structure:
C: \ Temp \ Script
In this script my batch file exists:
SET mypath=%~dp0 :: Set path C:\Temp\Script
SET UpLevel="%mypath:~0,-1%.."
echo UpLevel ::need show C:\Temp\
So how does he write?
+3
source to share