i'm trying to write a batch file to install some programs.
i want to use
it works fine, but it needs to be compatible with all windows machines. (I already tried using %ProgramFiles%, but I found that win98 doesn't have this as a default) I tried
and
but it still don't echo back! (and I DO know that it IS a valid directory). I do know a little bit of pascal, but I don't have it at work, and I truly only know a little bit right now.
also: True or False? For the most part,(as far as batch scripting goes) if it works on win98 and NT4, it'll work on them all.
i want to use
Code:
if not exist "C:\Program Files" goto changedir
Code:
if exist "C:\Program Files" echo yea
Code:
if exist C:\Progra~1 echo yea
also: True or False? For the most part,(as far as batch scripting goes) if it works on win98 and NT4, it'll work on them all.