master_mtz Posted July 29, 2005 Share Posted July 29, 2005 hi all , i just want to know how to set system variables through batch files, and thx alot Link to comment Share on other sites More sharing options...
Martin Zugec Posted July 29, 2005 Share Posted July 29, 2005 Set for session variables, setx for computer variables... For example Set variables = value Link to comment Share on other sites More sharing options...
master_mtz Posted July 29, 2005 Author Share Posted July 29, 2005 ok , thx a lot for ur reply Mr.Martin Zugec ,i apperciate ur kindness , but i got one more question , where can i get setX? Link to comment Share on other sites More sharing options...
spiritpyre Posted July 30, 2005 Share Posted July 30, 2005 (edited) I think what he meant was set x where x is variable = valuei.e.:Set variables = value<{POST_SNAPBACK}>this fits with the description you get when you type help set from cmd.exe Edited July 30, 2005 by spiritpyre Link to comment Share on other sites More sharing options...
gunsmokingman Posted July 30, 2005 Share Posted July 30, 2005 This uses the set Set UN=%UserName%Set UP=%UserProfile%Echo Off && CLS && Mode 55,5 && Color f2Set UN=%UserName%Set UP=%UserProfile%Title My Name Is %UN% && Echo.Echo My Name Is %UN% && echo This Is My User Profile && Echo %UP% && ping -n 4 127.0.0.1>nul Link to comment Share on other sites More sharing options...
master_mtz Posted July 30, 2005 Author Share Posted July 30, 2005 what i meaned was how to change systemvariables through batch filesi mean for example:i want to change the computer name to "MTZ" 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