Sunday, October 28, 2012

Check OS 32bits and 64bits as a condition to run part of a batch or script

There are example for this checking:

**************************************************************************************

If Exist "C:\Program Files (x86)\" goto X64

start /MAX C:\PROGRA~1\INTERN~1\IEXPLORE.EXE http://www.google.com

 

:X64

If NOT EXIST "C:\Program Files (x86)\" goto END

start /MAX "C:\PROGRA~1 (x86)\INTERN~1\IEXPLORE.EXE" http://www.google.com

:END

**************************************************************************************

Print Friendly and PDF
Share/Bookmark

No comments:

Post a Comment