Situation:
You want to run different task (application install / registry edition / copy to another path / …) depends on processor architecture. You must to determinate that what is the maximum addressable length of target processor so in short: It is 32-bit (x86) or 64-bit (x64) processor?
Solution:
Here you can find a working windows batch which will run your declared command depends on processor architect.
How to use it:
- The name of it is not important, but the extension of it must to be .cmd
- You must to edit two thing for your need: The task what you must to start in x86-case (setupx86HUN.cmd) & in x64-case (setupx64HUN.cmd).
Of course you can embed more batch, like in our case (the main batch start an another batch as task).