How to search a file in program files folder using if not exists in batchfile
I am writing a batch file where I' m searching fo开发者_如何学JAVAr a file like
IF not exist "C:\Program Files\Bfsdfs\Fdsfsdfsde\dsfe.exe"
and processing multiple statements in if else, but this statement always returns false, irrespective whether the file exist or not.
IF not exist "C:\Program Files\Bfsdfs\Fdsfsdfsde\dsfe.exe" GOTO dosomething
@REM file found
...
GOTO :done
:dosomething
@REM file not found
...
:done
精彩评论