FM Blog'as Logo FM Blog'as
June 2019
M T W T F S S
« Aug    
 12
3456789
10111213141516
17181920212223
24252627282930

Categories

Archives


CMD kintamieji

Parašyta August 10th, 2015

%ALLUSERSPROFILE% C:\ProgramData
%APPDATA% C:\Users\{username}\AppData\Roaming
%CommonProgramFiles% C:\Program Files\Common Files
%COMMONPROGRAMFILES(x86)% C:\Program Files (x86)\Common Files
%COMPUTERNAME% {computername}
%COMSPEC% C:\Windows\System32\cmd.exe or if running a 32 bit WOW – C:\Windows\SysWOW64\cmd.exe
%DATE% The current date using same region specific format as DATE.
%ERRORLEVEL% The current ERRORLEVEL value, automatically set when a program exits.
%HOMEDRIVE% C:
%HOMEPATH% \Users\{username}
%LOCALAPPDATA% C:\Users\{username}\AppData\Local
%LOGONSERVER% \\{domain_logon_server}-PC pavadinimas
%NUMBER_OF_PROCESSORS% The Number of processors running on the machine.
%OS% Operating system on the user’s workstation.
%PATH% C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem;{plus program paths}
%PATHEXT% .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS ; .WSF; .WSH; .MSC
The syntax is like the PATH variable – semicolon separators.
%PROCESSOR_ARCHITECTURE% AMD64/IA64/x86 This doesn’t tell you the architecture of the processor but only of the current process, so it returns “x86” for a 32 bit WOW process running on 64 bit Windows. See detecting OS 32/64 bit
%PROCESSOR_ARCHITEW6432% =%ProgramFiles% (only available on 64 bit systems)
%PROCESSOR_IDENTIFIER% Processor ID of the user’s workstation.
%PROCESSOR_LEVEL% Processor level of the user’s workstation.
%ProgramW6432% =%PROCESSOR_ARCHITECTURE% (only available on 64 bit systems)
%ProgramData% C:\ProgramData
%ProgramFiles% C:\Program Files
%ProgramFiles(x86)% C:\Program Files (x86)
%PSModulePath% %SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\
%Public% C:\Users\Public
%RANDOM% A random decimal number between 0 and 32767.
%SYSTEMDRIVE% C:
%SYSTEMROOT% C:\Windows
%TEMP% and %TMP% C:\Users\{Username}\AppData\Local\Temp
Under XP this was \{username}\Local Settings\Temp
%TIME% The current time using same format as TIME.
%USERNAME% {username}
%USERPROFILE% %SystemDrive%\Users\{username}
This is equivalent to the $HOME environment variable in Unix/Linux
%WINDIR% C:\Windows
Dalinkis

Priskirta prie Naudingos žinios, Programavimas | Komentarai (0)

Palikti komentarą

You must be logged in to post a comment.