Heads up to Clark for pointing out that:
SET LOCATE=%~dp0CD /D “%LOCATE%” 
can just be:
CD  /D “%~dp0”


(I don’t remember what the variable that was set was called originally, as I changed to to locate on a whim some time ago.)

Heads up to Clark for pointing out that:

SET LOCATE=%~dp0
CD /D “%LOCATE%” 

can just be:

CD  /D “%~dp0”

(I don’t remember what the variable that was set was called originally, as I changed to to locate on a whim some time ago.)