开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜