I have batch file that I am inheriting and I cannot get to work in a 64bit Windows 7 environment. The batch file makes a call to a java script, and passes two variables in it. The old on looked like this:
C:\Progra~1\salesf~1.com\ApexDa~2.0\bin\process.bat C:\Progra~1\*PATH* *VARIABLE*
This was run onm 32bit XP which has just the one program files. I have tried every way I can think of to change the being of the the path to Program fiels x86. I have tried SET PATH, SET ExecPath, %ProgrmaFiles(x86), but they all return cannot find the path specified. I am sure the answer is easy, and I know there is a much beeter way to do this, and it will be changed, but for the moment, I need this to work. Any help, much appreciated.
If you type
then this shows the directory listing in the 8.3 format.
Program Filesexpands toPROGRA~1andProgram Files (x86)expands toPROGRA~2. So I think you’ll need to change the script to usePROGRA~2EDIT: I agree with Mark that this isn’t ideal — it depends how much you are able to change of the legacy scripts. On a Win7 machine you should be able to use
%ProgramFiles%and%ProgramFiles(x86)%(note the trailing ‘%’).