Open the System Properties dialog box. Tip: Open a command prompt and type SYSDM.CPL . Click the Advanced tab. Click Environment Variables to add a new variable or edit an existing variable.