1.

Solve : Path of batch file?

Answer»

I am going to make a batch file and I want to show where the file is located. For EXAMPLE:
I make the batch file and save it to '%userprofile%\desktop\folder\hi.bat'
Then I open that file and it will tell me its LOCATION. ANYONE know how to do that?

Thanks for any help.Try "chdir"Try using echo %~p0 in your batch file. There will be a TRAILING backslash which you may or may not want to remove.

Good luck. or just cd.Thanks, i GOT it



Discussion

No Comment Found