The Unicorn Posted August 14, 2004 Share Posted August 14, 2004 I was wondering what differnet varibles there are in bartpe. I'm trying to accsess a file that is in the root of the cd from an other program but when I write cd %systemdrive% in cmd it doesen't work. what I was wondering was if there are anny easy replacement for it. Link to comment Share on other sites More sharing options...
Jotnar Posted August 15, 2004 Share Posted August 15, 2004 %systemdrive% will return x: so you can't cd to it. Just type in %systemdrive%\program.exe to get the program to work. If you type in %systemdrive% when you are on another drive it will take you to the root of the systemdrive just like typing x: would.Cheers Link to comment Share on other sites More sharing options...
prathapml Posted August 16, 2004 Share Posted August 16, 2004 Just open a CMD window, and type the command "SET" to get a list of all environment variables supported. Wrap each of those variables with the "%" sign to be used wherever necessary. Link to comment Share on other sites More sharing options...
The Unicorn Posted August 16, 2004 Author Share Posted August 16, 2004 Thanks a lot for the replies. I just can't belive that I fortgot to use the SET command to check them. 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