Windows 7 32-bit Program Files path in a Batch file Issue -


i have batch file inheriting , cannot work in 64bit windows 7 environment. batch file makes call java script, , passes 2 variables in it. old on looked this:

 c:\progra~1\salesf~1.com\apexda~2.0\bin\process.bat     c:\progra~1\*path*     *variable* 

this run onm 32bit xp has 1 program files. have tried every way can think of change being of the path program fiels x86. have tried set path, set execpath, %progrmafiles(x86), return cannot find path specified. sure answer easy, , know there beeter way this, , changed, moment, need work. help, appreciated.

if type

 dir /x c:\ 

then shows directory listing in 8.3 format. program files expands progra~1 , program files (x86) expands progra~2. think you'll need change script use progra~2

edit: agree mark isn't ideal -- depends how able change of legacy scripts. on win7 machine should able use %programfiles% , %programfiles(x86)% (note trailing '%').


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -