I am writing a batch file that performs several operations in the folder that is specified relative to the first argument passed to the batch file. Inside the batch file, I would like to repeat to the user the folder in which I work. However, every time I repeat the path, it contains .... \, which I used to determine where to place my folder. For instance.
set TempDir=%1\..\Temp echo %TempDir%
So, if I run my batch file with the \FolderA parameter, the output of the echo FolderA\..\Temp statement is instead of \Temp , as I would expect.
source share