System Grab Bag

View all TLDR pages from Windows (or from all pages)

set

Display or set environment variables for the current instance of CMD. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/set.
  • List all current environment variables:
    set
  • Set an environment variable to a specific value:
    set {{name}}={{value}}
  • List environment variables starting with the specified string:
    set {{name}}
  • Prompt the user for a value for the specified variable:
    set /p {{name}}={{prompt_string}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.

Other Projects

This TLDR page is also found in other projects: