Cetla Posted June 25, 2005 Share Posted June 25, 2005 Im sorry if this was asked any where else all i keep getting anywhere near it is this topic List of default variables + batch file help. i wanted to know like %SYSTEMDRIVE% is there a way to find where your program file dir is, so you dont have to declare \program files\ you just plug in a variable like %programefiles% ? I thought I seen something like this in the unattended guide, but i cant seem to find it. Link to comment Share on other sites More sharing options...
jbm Posted June 25, 2005 Share Posted June 25, 2005 I'm not sure I understand your question, but %ProgramFiles% is a defaultvariable which expands to your Program Files directory. Just type setin a command window to see all the variables. If that's not what youwanted, please try to explain more. Link to comment Share on other sites More sharing options...
Dumpy Dooby Posted June 25, 2005 Share Posted June 25, 2005 Im sorry if this was asked any where else all i keep getting anywhere near it is this topic List of default variables + batch file help. i wanted to know like %SYSTEMDRIVE% is there a way to find where your program file dir is, so you dont have to declare \program files\ you just plug in a variable like %programefiles% ? I thought I seen something like this in the unattended guide, but i cant seem to find it.<{POST_SNAPBACK}>Try taking the first "e" out of "%programEfiles%" Link to comment Share on other sites More sharing options...
Cetla Posted June 25, 2005 Author Share Posted June 25, 2005 thanks for the help jbm. That first "e" Dumpy was a was hit by mistake Link to comment Share on other sites More sharing options...
sleepnmojo Posted June 25, 2005 Share Posted June 25, 2005 Just a hint, when using the %ProgramFiles% variable, you will most likely need to use quotes around it."%ProgramFiles%\MyProgram\program.exe" /commandxcopy C:\moo\ "%ProgramFiles%\stuff"Those are some examples. Now some things commands need the quotes, while others don't. This is a good reason to test out the commands first. 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