mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 08:55:47 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
25
tldr/windows/set
Normal file
25
tldr/windows/set
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user