Windows System Variables

Source: Internet
Author: User

  • Profile location:
    %ALLUSERSPROFILE%

  • Data storage location:
    %APPDATA%

  • Current directory:
    %CD%

  • Cmd.exe Location:
    %CMDCMDLINE%

  • Extended Version Number:
    %CMDEXTVERSION%

  • Common file paths:
    %CommonProgramFiles%

  • Computer Name:
    %COMPUTERNAME%

  • Cmd.exe Location:
    %COMSPEC%

  • Current Date:
    %DATE%

  • Error code:
    %ERRORLEVEL%

  • User-driven drive letter:
    %HOMEDRIVE%

  • User home directory path:
    %HOMEPATH%

  • Number of processors:
    %NUMBER_OF_PROCESSORS%

  • Operating system Name:
    %OS%

  • Environment variables:
    %Path%

  • File name extensions that can be executed:
    %PATHEXT%

  • Processor chip Architecture:
    %PROCESSOR_ARCHITECTURE%

  • Processor Model:
    %PROCESSOR_LEVEL%

  • Processor Revision Number:
    %PROCESSOR_REVISION%

  • ProgramFiles Path:
    %ProgramFiles%

  • Command prompt:
    %PROMPT%

  • Random number (0-32767):
    %RANDOM%

  • Session connection and conversation name:
    %SESSIONNAME%

  • To start the directory drive:
    %SYSTEMDRIVE%

  • Startup directory Location:
    %SYSTEMROOT%

  • Current User Temp directory:
    %TEMP%或%TMP%

  • Current time:
    %TIME%

  • Domain name of user account:
    %USERDOMAIN%

  • Current User name:
    %USERNAME%

  • Profile location:
    %USERPROFILE%

  • Operating System Location:
    %WINDIR%

  • Windows System Variables

    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.