|
Answer» Hi all: I'm CREATING a batch script that I'd like to count on for installing a Help 2 SYSTEM to both 32 and 64 bit architecture. I'm hoping to avoid an architecture CONDITIONAL statement in the script. I'm installing to whateverdrive:\Program FILES\Foo\Help2. For the 64 bit architecture I'll need to install to whateverdrive:\Program Files(x86)\Foo\Help2. My thinking is that I can use the %ProgramFiles% variable to determine the architecture. For instance: echo %ProgramFiles% on my PC will return C:\Program Files, WHEREAS echo %ProgramFiles(x86)% echos my input, %ProgramFiles(x86)%. I don't have a 64 bit box to test on yet, will that variable return whateverdrive:\Program files(x86) on a 64 bit PC? If so I want to make variable based on the echo return, which will act as an architecture indicator without having to actually specify hardware. Am I out to lunch? Will I need an architecture condition? Any help greatly appreciated thanks
|