Thread: Batch file
View Single Post
Old 12-20-2004, 03:58 PM   #2 (permalink)
SFR
SUPER MODERATOR
 
SFR's Avatar
 
Join Date: Nov 2004
Location: San Diego, USA
Age: 24
Posts: 4,046
Default

Quote:
Originally Posted by Rigel_Kent
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 ):

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
I could be wrong but I think it is %systemroot% not %systemdirectory%
__________________
The real danger is not that computers will begin to think like men,
but that men will begin to think like computers.
~Sydney J. Harris

I haven't lost my mind; I have a tape back-up somewhere.

What the world needs is more geniuses with humility, there are so few of us left.
~Oscar Levant

Relax, its only Ones and Zeros
SFR is offline   Reply With Quote