Code: Select all
@echo off
set TEST=%~dp0test.bat
echo %TEST%
if not exist {%TEST%} (
echo test.bat not found
exit /b 1
)
Does anyone know why it says test.bat is not found, even though right before that it displays the exact location of test.bat?$ wine cmd
Wine CMD Version 5.1.2600 (1.6)
Z:\home\ndejonge>test.bat
Z:\home\ndejonge\test.bat
test.bat not found
I start: Z:\home\ndejonge>test.bat
It says %TEST% is: Z:\home\ndejonge\test.bat
But then suddenly "if not exist {%TEST%}" is true.
Thanks.