When I run the following lines:
set "Loc=%~dp0"
echo %Loc% > C:\PLACE\LOCFILE.txt
I receive the following in the LOCFILE:
C:\BATCHLOC
^
Note Space
I am trying to use %Loc% like this in a separate batch file:
(
set /p Loc=
)<C:\PLACE\LOCFILE.txt
)
call "%Loc%\FILENAME.bat"
But the space ruins the path, and so then the call command doesn't work. Does anyone know how to fix this, (Stop it from creating the space at the end)?