cmd windows system command line to set, view, change environment variables

Problem Scenario:
In the windows system, you need to configure the project do flask qq mailbox users, passwords, security account password in order to set the environment variable OA machine to obtain:

import os
app.config['MAIL_USERNAME'] = os.environ.get('MAIL_USERNAME')
app.config['MAIL_PASSWORD'] = os.environ.get('MAIL_PASSWORD')
So how to set environment variables? details as follows:

1. Check all currently available environment variables : input set, press Enter to see.

2, view an environment variable : Input "set the variable name" can be, for example, want to see the path variable values, the input set path

3, modify environment variables : Type "set variable name = variable content" can be, for example, the path to "d: \ nmake.exe", just type set path = "d: \ nmake.exe ". Note that this refers to modify environment variables are now content to overwrite the previous content is not added. For example, when I set the path above the path, if I re-enter the set path = "c", see the path the path again when its value is "c:", instead of "d: \ nmake.exe"; " c ".

4, set to null : If you want a variable to empty, enter "set variable name =" button. Such as "set path =" path when you see it is empty. Note that the above has been said, only the current command line window function. So do not go see the path when right-click "My Computer" - "Advanced Properties."

5, to the variable additional content (other than 3, that is covered) : Type "set variable name =% name% variable; the variable content." For example, adding a new path for the path, enter "set path =% path%; d: \ nmake.exe" to be d: \ nmake.exe added to the path, execute "set path =% path% again; c: ", then use the set path statement to view the time, there will be: d: \ nmake.exe; c :, rather than step 3 only c :.

'Set view an environment variable'
'See all environment variables'

Guess you like

Origin www.cnblogs.com/We612/p/11331401.html