Code: Select all
@echo off>Temp&for %%a in ("Temp.*") do ( set "_Dir=%%~par" )&Del Temp
Moderator: DosItHelp
Code: Select all
@echo off>Temp&for %%a in ("Temp.*") do ( set "_Dir=%%~par" )&Del Temp
Code: Select all
echo %CD%
Code: Select all
H:\temp\temp>cd
H:\temp\temp