Zubair Posted September 30, 2004 Posted September 30, 2004 Hello Friends, A Little Confused By These Variable's%SystemFolder% Ok%AllUserProfile% OkWhat About1, Program Files2, Current User3, System Drive4, etcWhat All Are There If SomeOne Help Me Thanks And Waiting.
rdalling Posted September 30, 2004 Posted September 30, 2004 %UserProfile%=Location of the currently logged on user%ProgramFiles%= location of all the program files%SystemDrive%=what drive the System files are loaded on.
jondercik Posted September 30, 2004 Posted September 30, 2004 %SystemFolder% doesnt exist, it is %systemroot%%AllUserProfile% OkWhat About1, Program Files is %PROGRAMFILES%2, Current User is %USERPROLFILE%3, System Drive is %systemdrive%4, etcIf you go to a cmd window type set|more to see all system variables.
MHz Posted September 30, 2004 Posted September 30, 2004 If you have XP.Go to Help and support centre in start menu, run it.Type "command shell overview" in search.The variables are there to view.
Tsunami Posted September 30, 2004 Posted September 30, 2004 %SystemFolder% doesn't exist, it's %SystemRoot%%AllUserProfile% doesn't exist, it's %AllUsersProfile%What About1, Program Files is %ProgramFiles%2, Current User is %UserProfile% (to get just the name, not the folder, use %UserName%)3, System Drive is %SystemDrive%4, etc but, like the rest said, you can find all the variables when you type set in the cmd window.
SiMoNsAyS Posted September 30, 2004 Posted September 30, 2004 (edited) so you would like to know a list of all variables??START>RUNCMD.EXESETedit: the list of variables work on a win32 environment, but some of them like %APPDATA% won't work until logged Edited September 30, 2004 by SiMoNsAyS
Zubair Posted September 30, 2004 Author Posted September 30, 2004 Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks 1000 Time's
oioldman Posted October 2, 2004 Posted October 2, 2004 Thanks for that, helps me.But, set, doesn't show the path for the user "Default User", who is this? as some things in here are used by all users, like Accessibilty and remote assistance.lnk and i can't quite work out how to delete this folder and shortcut.Any assistance, appreciated.
oioldman Posted October 4, 2004 Posted October 4, 2004 just for note =>%userprofile% relates to the Default User account
Noise Posted October 4, 2004 Posted October 4, 2004 just for note =>%userprofile% relates to the Default User accountNO IT DOESN'T!%USERPROFILE% = the location of the currently logged in users profile. I.e. C:\Documents and Settings\Administrator or C:\WINNT\Profiles\joe.The only time that %USERPROFILE% points to the Default User profile is during setup (cmdlines.txt) or before anyone has logged in.If you're writing a script and need a variable to point to the Default User profile - you have to make it yourself like this:SET DEFAULTUSERPROFILE=%USERPROFILE%\..\Default User
mazin Posted October 4, 2004 Posted October 4, 2004 %AllUserProfile% doesn't exist, it's %AllUsersProfile%Good eye! Add to your collection: %homedrive% is definitely C: drive regardless it's being your system drive or not.Just type it in Run box and see.
sleepnmojo Posted October 5, 2004 Posted October 5, 2004 @mazin:%HOMEDRIVE% is the drive where your profile resides.D:\Documents and Settings\mazinHOMEDRIVE is D:HOMEPATH is \Documents and Settings\mazin@Nois3The %USERPROFILE% is the default profile in setup, which is probably the best time to set the variable. It may also not also have the name Default User, but can instead be Default User.COMPNAME. Either pulling from the registry, or setting it during setup is the best solution here.
oioldman Posted October 5, 2004 Posted October 5, 2004 OK, so if %USERPROFILE% isn't Default User, what is?As it holds the path to Accessibility folder and also Sytem Tools and I need these removed, and all other SET variables do not work.Thanks
kenedy Posted October 5, 2004 Posted October 5, 2004 OK, so if %USERPROFILE% isn't Default User, what is?There is no environment variable for default users profile.Add this line to your .bat file, then %DefaultUser% will point to "Default User"set DefaultUser = "%Allusersprofile%\..\Default User"
MHz Posted October 5, 2004 Posted October 5, 2004 set DefaultUser = "%Allusersprofile%\..\Default User"You will not find default user profile in all users profile dir?Instead you may have to use the long way instead. Set DefaultUser = "%Systemdrive%\Documents and Settings\Default User"
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