September 30, 200421 yr 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.
September 30, 200421 yr %UserProfile%=Location of the currently logged on user%ProgramFiles%= location of all the program files%SystemDrive%=what drive the System files are loaded on.
September 30, 200421 yr %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.
September 30, 200421 yr 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.
September 30, 200421 yr %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.
September 30, 200421 yr 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, 200421 yr by SiMoNsAyS
September 30, 200421 yr Author 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
October 2, 200421 yr 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.
October 4, 200421 yr 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
October 4, 200421 yr %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.
October 5, 200421 yr @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.
October 5, 200421 yr 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
October 5, 200421 yr 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"
October 5, 200421 yr 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"
Create an account or sign in to comment