Windows System Variables

Source: Internet
Author: User

Land island studio sorting and collecting

% Allusersprofile %: list all user profile file locations.
% Appdata %: lists the default storage locations of application data.
% Cd %: list the current directory.
% Clientname %: list the NetBIOS names of clients connected to a terminal service session.
% Cmdcmdline %: indicates the command line used by cmd.exe before startup.
% Cmdextversion %: indicates the extended version number of the current command handler.
% Commonprogramfiles %: lists the folder paths of common files.
% Computername %: Lists computer names.
% Comspec %: lists the paths of the executable command shell (command handler.
% Date %: list the current date.
% Errorlevel %: lists the error codes for the recently used commands.
% Homedrive %: Lists drive letters with the user's home directory.
% Homepath %: list the full path of the user's main directory.
% Homeshare %: lists the network paths of the user's shared home directory.
% Logonsever %: lists the domain name controller names of valid current logon sessions.
% Number_of_processors %: list the number of processors installed on the computer.
% OS %: list operating system names. (Windows XP and Windows 2000 are listed as windows_nt .)
% PATH %: lists the search paths of executable files.
% Pathext %: list the file extensions that the operating system deems executable.
% Processor_architecture %: list the processor's chip architecture.
% Processor_identfier %: lists the processor descriptions.
% Processor_level %: lists the computer processor models.
% Processor_revision %: indicates the revision number of the processor.
% ProgramFiles %: lists the paths of the Program Files folder.
% Prompt %: lists the command prompt settings of the current command interpreter.
% Random %: list the random decimal numbers between 0 and 32767.
% Sessionname %: lists the connection and session names used to connect to a terminal service session.
% Systemdrive %: The drive where the Windows startup directory is located is listed.
% SystemRoot %: the location of the Windows startup directory is listed.
% Temp % and % TMP %: lists the default temporary directories of currently logged-on user available applications.
% Time %: list the current time.
% Userdomain %: lists the names of domains containing user accounts.
% Username %: lists the names of users currently logged on.
% USERPROFILE %: list the location of the current user profile file.
% WINDIR %: list the location of the operating system directory.

% Allusersprofile % -------------------- all user profile paths
% USERPROFILE % ----------------------- current user's configuration file directory
% Appdata % -------------------------- current user's Application Path
% Commonprogramfiles % ------------- file path shared by the application
% Homedrive % ------------------------ current user's primary Disk
% Homepath % ------------------------ main directory of the current user
% ProgramFiles % ---------------------- default installation directory of the application
% Systemdrive % ---------------------- drive letter of the system
% SystemRoot % ----------------------- directory of the system
% WINDIR % ---------------------------- same as above, always the same as systemroot
% TMP % -------------------------------- temporary directory of the current user
% Temp % ----------------------------- same as the temporary directory

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.