if statement - Batch file help please: If exist C:\Program Files\Adobe OR C:\Program Files (x86)\Adobe -
how can modify following batch file check both c:\program files\adobe , c:\program files (x86)\adobe?
this code looks c:\program files\adobe
@echo off if exist "c:\program files\adobe" goto end echo %computername% > \\server001\share\%computername%.txt :end i tried following doesn't work:
@echo off if exist "c:\program files\adobe" if exist "c:\program files (x86)\adobe" goto end echo %computername% > \\server001\share\%computername%.txt :end your appreciated, thank you!
why not way?
@echo off if exist "c:\program files\adobe" goto end if exist "c:\program files (x86)\adobe" goto end echo %computername% > \\server001\share\%computername%.txt :end
Comments
Post a Comment