Rigel_Kent
New Member
Hi,
I just began to work with windows msdos. I'm trying to make a .bat file that can check if a file exists in the windows system dir.
So, I've tryed this ( don't laugh ):
The variable %SystemDirectory% doesn't even appear; only \filename.exe
Can someone help me out here?
Best regards,
Rigel_Kent
I just began to work with windows msdos. I'm trying to make a .bat file that can check if a file exists in the windows system dir.
So, I've tryed this ( don't laugh ):
Code:
IF EXIST %SystemDirectory%\filename.exe GOTO NEXT
etc...
:NEXT
The variable %SystemDirectory% doesn't even appear; only \filename.exe
Can someone help me out here?
Best regards,
Rigel_Kent