ner Posted May 17, 2010 Share Posted May 17, 2010 Hi, I have a menu that sits within the system32 dir, and i want to call a program that lives in the windows dir, but i can not find the command to run to switch from windows\system32 to windows\***.exe Link to comment Share on other sites More sharing options...
Sp0iLedBrAt Posted May 17, 2010 Share Posted May 17, 2010 Have you tried cd c:\Windows from Command Prompt? Link to comment Share on other sites More sharing options...
ner Posted May 17, 2010 Author Share Posted May 17, 2010 Have you tried cd c:\Windows from Command Prompt?yeah x:\windows worksput i want to call from cmd fileso will it bex:\windows\programname.exe Link to comment Share on other sites More sharing options...
Sp0iLedBrAt Posted May 17, 2010 Share Posted May 17, 2010 (edited) You could also try %SYSTEMROOT% , as well as %SystemDrive%; it should point to the Windows folder. According to this http://en.wikipedia.org/wiki/Environment_variable , \WINDOWS should be used for XP. Edited May 17, 2010 by Sp0iLedBrAt Link to comment Share on other sites More sharing options...
ner Posted May 17, 2010 Author Share Posted May 17, 2010 ok thanks i fund is easier to call a batch file to do the cd changes and start the program working now thanks for your help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now