NanoTech-kw · Tech Guide Library

SET CMD (Set Environment Variable)

Windows · CMD

View or set environment variables. Syntax: set [var]=[value]

Step-by-step

  1. Open Command Prompt (press Win+R, type cmd, and press Enter)
  2. Syntax: set [var]=[value]
  3. Brief: View or set environment variables.
  4. Example: set COMPUTERNAME
  5. Tip: set is session-only; use setx to persist a variable.

Reference: learn.microsoft.com

Open in the NanoTech-kw library →