hplsbyufan Posted March 3, 2005 Posted March 3, 2005 I know of a few variables:%userprofile%%allusersprofile%%windir%%systemroot%%systemdrive% (this goes to the boot drive for me instead of the system drive...)Where can I find a list of all the variables?
gunsmokingman Posted March 3, 2005 Posted March 3, 2005 Type This In Cmd promt Set Then Hit Enter To Get A List
hplsbyufan Posted March 3, 2005 Author Posted March 3, 2005 Type This In Cmd promt Set Then Hit Enter To Get A List<{POST_SNAPBACK}>Thank you. I knew it had to be something simple! So, it looks like they are:%ALLUSERSPROFILE%%APPDATA%%CommonProgramFiles% (%ProgramFiles%\Common Files)%ComSpec% (cmd.exe)%HOMEPATH% (same as %userprofile%)%ProgramFiles%%SystemRoot% (same as %windir%)%TEMP% or %TMP% (%userprofile%\Local Settings\Temp)%USERPROFILE% (%systemdrive%\Documents and Settings\Brandon)%winbootdir% (Win9x "Windows" folder if dual booting)%windir% (winnt folder)I noticed set did not display %systemdrive%. Are there more of these variables that SET does not display (even when using SET /?)?
I_Broke_My_MHZ Posted March 4, 2005 Posted March 4, 2005 %systemdrive% is the primary drive partition used for windows, most commonly C:
prathapml Posted March 4, 2005 Posted March 4, 2005 set did not display %systemdrive%. <{POST_SNAPBACK}>huh?C:\> SET [enter]ALLUSERSPROFILE=APPDATA=CLIENTNAME=CommonProgramFiles=COMPUTERNAME=ComSpec=FP_NO_HOST_CHECK=HOMEDRIVE=C:HOMEPATH=LOGONSERVER=NUMBER_OF_PROCESSORS=OS=Path=PATHEXT=PROCESSOR_ARCHITECTURE=PROCESSOR_IDENTIFIER=PROCESSOR_LEVEL=PROCESSOR_REVISION=ProgramFiles=PROMPT=SESSIONNAME=SystemDrive=SystemRoot=TEMP=TMP=tvdumpflags=USERDOMAIN=USERNAME=USERPROFILE=windir=Please look carefully again.
valter Posted March 4, 2005 Posted March 4, 2005 These are for Win2k3 server standard edition%ALLUSERSPROFILE% Local Returns the location of the All Users Profile. %APPDATA% Local Returns the location where applications store data by default. %CD% Local Returns the current directory string. %CMDCMDLINE% Local Returns the exact command line used to start the current Cmd.exe. %CMDEXTVERSION% System Returns the version number of the current Command Processor Extensions. %COMPUTERNAME% System Returns the name of the computer. %COMSPEC% System Returns the exact path to the command shell executable. %DATE% System Returns the current date. Uses the same format as the date /t command. Generated by Cmd.exe. For more information about the date command, see Date. %ERRORLEVEL% System Returns the error code of the most recently used command. A non zero value usually indicates an error. %HOMEDRIVE% System Returns which local workstation drive letter is connected to the user's home directory. Set based on the value of the home directory. The user's home directory is specified in Local Users and Groups. %HOMEPATH% System Returns the full path of the user's home directory. Set based on the value of the home directory. The user's home directory is specified in Local Users and Groups. %HOMESHARE% System Returns the network path to the user's shared home directory. Set based on the value of the home directory. The user's home directory is specified in Local Users and Groups. %LOGONSERVER% Local Returns the name of the domain controller that validated the current logon session. %NUMBER_OF_PROCESSORS% System Specifies the number of processors installed on the computer. %OS% System Returns the operating system name. Windows 2000 displays the operating system as Windows_NT. %PATH% System Specifies the search path for executable files. %PATHEXT% System Returns a list of the file extensions that the operating system considers to be executable. %PROCESSOR_ARCHITECTURE% System Returns the chip architecture of the processor. Values: x86 x86Refers to microprocessors that have or emulate the 32-bit Intel processor architecture.or IA64 (Itanium ItaniumAn Intel microprocessor that uses explicitly parallel instruction set computing and 64-bit memory addressing. Itanium-based refers to systems or platforms that are based on the Itanium processor. Itanium 2-based refers to systems or platforms that are based on the Itanium 2 processor. Itanium architecture-based refers to systems or platforms that are based on the Itanium and Itanium 2 processors.-based). %PROCESSOR_IDENTFIER% System Returns a description of the processor. %PROCESSOR_LEVEL% System Returns the model number of the processor installed on the computer. %PROCESSOR_REVISION% System Returns the revision number of the processor. %PROMPT% Local Returns the command prompt settings for the current interpreter. Generated by Cmd.exe. %RANDOM% System Returns a random decimal number between 0 and 32767. Generated by Cmd.exe. %SYSTEMDRIVE% System Returns the drive containing the Windows server operating system root directory (that is, the system root). %SYSTEMROOT% System Returns the location of the Windows server operating system root directory. %TEMP% and %TMP% System and User Returns the default temporary directories that are used by applications available to users who are currently logged on. Some applications require TEMP and others require TMP. %TIME% System Returns the current time. Uses the same format as the time /t command. Generated by Cmd.exe. For more information about the time command, see Time. %USERDOMAIN% Local Returns the name of the domain that contains the user's account. %USERNAME% Local Returns the name of the user who is currently logged on. %USERPROFILE% Local Returns the location of the profile for the current user. %WINDIR% System Returns the location of the operating system directory.
hplsbyufan Posted March 4, 2005 Author Posted March 4, 2005 huh?<snip>Please look carefully again.<{POST_SNAPBACK}>Oops... there it is...Thank you
hplsbyufan Posted March 4, 2005 Author Posted March 4, 2005 These are for Win2k3 server standard edition...<{POST_SNAPBACK}>Thank you! Not only do I have all variables, I have a quality definition for each of them! Is there a way to rate responses in this forum? Or threads?
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now