Add the environment variable bat

 

Modify environment variables: Enter " the SET variable name = variable content" can be, for example, the path to "d: \ hacker.exe", as long as the input path = the SET " 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 my path and re-enter the SET = " c " , see the path the path again when its value is "c:", instead of "d: \ nmake.exe"; " c ".

 

Add environmental variables: Add a new path for the path, the input " SET path =% path%; d: \ hacker.exe" to be d: \ hacker.exe added to the path, is executed again " SET path path =% %; c: " ,
Then, using a set path statement to view the time, there will be: d: \ hacker.exe; c :, rather than step 3 only c :.

 

 

% ALLUSERSPROFILE% Local Returns all "user profile" position.
% APPDATA% topical applications store data returned to the default position in the case.
% CD% Local Returns the current directory string.
% CMDCMDLINE% Local Returns the exact command line used to start the current Cmd.exe line.
% CMDEXTVERSION% system returns the current "Command Processor Extensions," the version number.
% COMPUTERNAME% System Returns the name of the computer.
% COMSPEC% system returns the exact path of the command line interpreter executable.
% DATE% System returns the current date. Using the date / same command format t. Generated by Cmd.exe. For more information about the date command, see Date.
% ERRORLEVEL% system returns the most recently used command error code. A non-zero value usually indicates an error.
% HOMEDRIVE% system returns the local workstation drive letter is connected to the user's home directory. Based on the value of the home directory is provided. User's home directory is specified in the "Local Users and Groups".
% HOMEPATH% system returns the full directory path to the user's home. Based on the value of the home directory is provided. User's home directory is specified in the "Local Users and Groups".
% HOMESHARE% system returns the path to the shared network user's home directory. Based on the value of the home directory is provided. User's home directory is specified in the "Local Users and Groups".
% LOGONSEVER% partial return to verify the name of the domain controller of the current logon session.
% NUMBER_OF_PROCESSORS% system specified number of processors installed on the computer.
% OS% system returns the name of the operating system. Windows 2000 operating system as a Windows_NT.
% PATH% System Specifies the search path for executable files.
% PATHEXT% system returns a list of operating system executable file extensions considered.
% PROCESSOR_ARCHITECTURE% system returns chip processor architecture. Value: x86, IA64.
% PROCESSOR_IDENTFIER% system returns processor instructions.
% PROCESSOR_LEVEL% system returns the type installed on a computer processor.
% PROCESSOR_REVISION% system returns the revision number of the processor system variables.
% PROMPT% Local Returns the current setting command interpreter prompt. Generated by Cmd.exe.
% RANDOM% system returns 0 to 32767 random decimal number between. Generated by Cmd.exe.
% SYSTEMDRIVE%The system returns the drive containing the Windows XP root directory (that is, the system root directory).
% SYSTEMROOT% System Returns the location of Windows XP root directory.
% TEMP% and% TMP% System and User return the default temporary directories for applications that are currently available to the user login used. Some applications require TEMP, while other applications require TMP.
% TIME% System Returns the current time. Using Time / T same command format. Generated by Cmd.exe. For more information about the time command, see Time.
% USERDOMAIN% Local Returns the name of the domain that contains the user account.
% USERNAME% Local Returns the name of the user currently logged on.
% UserProfile% Local Returns the current position of the user's profile.
% WINDIR% system returns the position of the operating system directory.

 

 

 

reference:

https://blog.csdn.net/rubik_wong/article/details/70188046

 

Guess you like

Origin www.cnblogs.com/sea-stream/p/11427426.html