浏览代码

set: add page

pxgamer 7 年之前
父节点
当前提交
c83b07deac
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. 19 0
      pages/windows/set.md

+ 19 - 0
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}}`