From c83b07deacaa8432f9b38bfa2881f41a36f1a52b Mon Sep 17 00:00:00 2001 From: pxgamer Date: Thu, 18 Jan 2018 12:35:36 +0000 Subject: [PATCH] set: add page --- pages/windows/set.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/windows/set.md diff --git a/pages/windows/set.md b/pages/windows/set.md new file mode 100644 index 000000000..b7d98619d --- /dev/null +++ b/pages/windows/set.md @@ -0,0 +1,19 @@ +# set + +> Display or set environment variables for the current instance of CMD. + +- 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}}`