I need to grab the folder name of a currently executing batch file. I have been trying to loop over the current directory using the following syntax (which is wrong at prese
In batch files in the FOR command you'll need to prepend %whatever with an extra % (e.g. %%whatever). 'echo %~p0' will print the currently directory of the batch file.