Hi all,
I have a file called myfile.bat in the C:\A\B directory. The file is normally run from C:\A not the file's directory of C:\A\B. I want to set a variable within myfile.bat to know that it is in C:\A\B. How do I do this?
When I try %cd% I always get "C:\A" since that's the working directory.
Any help would be appreciated. FYI, I am using Windows XP.
Thanks,
Ajit