I have a .bat file that does some iterations via cmd across multiple directories. My problem is this:
- I need to be able to get the directory of the .bat file itself to keep coming back to it for other iterations.
An example would be:
:exemplo
set file=C:\nome-do-diretorio\
for /f "tokens=*" %%A in (%file%) do ( cd %%A)
So far, okay, but then I need the cmd to be pointed to the directory of the bat file itself.