Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

How to change %ProgramFiles% to D:\Program Files

Avatar of sjbullock1981
sjbullock1981 asked on
Scripting Languages
5 Comments1 Solution526 ViewsLast Modified:
Good Morning,
Firstly please excuse my igonorance windows scripting is not my strong point :)

I am trying to script an install of Teradata odbc, the install needs to be located in in D:\Program Files not C:\Program Files (All application specific installs need to be located in D:\Program Files).

When i use the following code:
      SET MSG=Running an install of Teradata GSS Client 64-bit
      %SOURCEDIR%\FILES\TeraGSS__windows_x8664.\setup.exe /S "/v/qn %INSTALL_64%"
        IF %ERRNUM% EQU 3010 SET ERRNUM=0

The Set INSTALL_64=INSTALLDIR="D:\%PROGRAMFILES%" command seems to try and set the INSTALL_64 to D:\C:\Program Files............Is there a way I can set %PROGRAMFILES% to D:\Program Files???