windows batch: react to command not found
Posted
by clamp
on Stack Overflow
See other posts from Stack Overflow
or by clamp
Published on 2010-06-02T09:47:48Z
Indexed on
2010/06/02
9:54 UTC
Read the original article
Hit count: 189
batch
|batch-file
hello, i want to write a simple batch script, that calls a certain exe, but if this one is not found, it should call another exe.
so in pseudocode
set file=c:\path\tool.exe
if(fileexists(file))
{
call file
}
else
{
call c:\somethingelse.exe
}
thanks!
© Stack Overflow or respective owner