I have a few programs I am currently working with, such as WinRAR, that have both the 32 and 64-bit versions. I want to make a script (VB or Batch) at the root of the project folder that can "scan" for the proper program to use in accordance with the local machines processor architecture.
Could this be done either with a simple file name trick using variables such as
WinRAR x86.exe and
WinRAR x64.exe or use the internal program architecture if renaming the binaries in a given scenario isn't an option?
I have downloaded programs such as Cheat Engine, that have both 32 and 64 bit versions that also include a binary that can do this.
Can this be done with simple script programing, and if so, how and with what script format should I use?