set
Display or set environment variables for the current instance of CMD. More information: https://docs.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}}
This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.