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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -