How do i get the path of a .bat file inside the .bat file dynamically?
Hi...
I have a .bat file (script) which I can place in any directory. How do I get the current directory path of this file inside this .bat file dynamically without initaly setting any variable? I know we can use "." or ".."etc.
But i know there is some command which we can use in the .bat file which will return the path where this .bat file is currently placed, but i dont know which one that is...
This command has a "~" symbol in it and i totally can't recollect what this command is.
Once i have the path of the directory where this current .bat file is placed i can then use this path at a later stage for either going to the top directory or something like that using "." or "..". Using this particular command will make my .bat file (script file) very generic.
Please do help me out
Spa