Nightlord Posted October 28, 2006 Share Posted October 28, 2006 (edited) Examples:%sleep%%appdata%In the appdata example, it marks YOUR appdata location:C:\Documents and Settings\NIGHTLORD\application dataWhat I'm looking for is a global parameter of NIGHTLORD in the example above, but that pulls it for whoever is logged on.IE:If I type in this command and NIGHTLORD is logged on, it points toC:\Documents and Settings\NIGHTLORDbut if Bob is logged in it points toC:\Documents and Settings\BobIs there such a parameter? Edited October 28, 2006 by Nightlord Link to comment Share on other sites More sharing options...
Yzöwl Posted October 28, 2006 Share Posted October 28, 2006 (edited) %USERNAME% - NIGHTLORD%USERPROFILE% - C:\Documents and Settings\NIGHTLORD Edited October 28, 2006 by Yzöwl Link to comment Share on other sites More sharing options...
Nightlord Posted October 28, 2006 Author Share Posted October 28, 2006 Awesome, thanks. I'll give it a shot for what I'm trying to do. Link to comment Share on other sites More sharing options...
Ctrl-X Posted October 29, 2006 Share Posted October 29, 2006 To get a list of all active environment variables, open a command prompt window and type SET [Enter]. 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