1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-24 00:02:09 +02:00
tldr/pages/windows/set.md
2022-10-04 23:06:23 +08:00

20 lines
487 B
Markdown

# 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}}`