1.

Solve : Using the Path in Windows 7 doesn't like (x86)?

Answer»

Can someone tell me how to add something to the path in a WINDOWS 7 (x64) that CONTAINS (x86).
It craps out and I cannot find a command to change the contents to 16 bit versions.Here is some more information.
I need to add the Oracle_home variable to the users path and then take it away once they leve the application.
The PROBLEM is the existing PATH has "Program FILES (x86)" in it...and the '(' are causing an error.

REM Setup path for Oracle
if {%DATABASE%}=={ORACLE} (
  set OLDPATH=%PATH%
  set PATH=%ORACLE_HOME%\bin;%PATH%
)

Well I found the solution on another site.
For all those who are going to have the same problem here it is.

Add QUOTES around the PATH=... statement.

REM Setup path for Oracle
if {%DATABASE%}=={ORACLE} (
  set "OLDPATH=%PATH%"
  set "PATH=%ORACLE_HOME%\bin;%PATH%"
)

Well done!



Discussion

No Comment Found