I want to write a .bat script that works in all Windows styles, regardless of 32 or 64 bit.
In this script, I want to run file.exe. This file is located in C: \ Program Files \ under 32-bit systems or C: \ Program FIles (x86) \ under x64. I can write:
"% ProgramFiles (x86)% \ file.exe" on 64-bit systems or "% ProgramFiles% \ file.exe" on 32-bit systems but I want to make a universal script. Is there a way to define this path universally?
Arek source share