for /f "delims=*" %a IN ('dir /a:d /b') do "C:\Program Files\7-Zip\7z" a %a.zip %a
for /d %a IN (*) do "C:\Program Files\7-Zip\7z" a "%a".zip "%a"
2013年6月28日 星期五
Windows 系統環境變數
%ALLUSERSPROFILE% C:\Documents and Settings\All Users
%APPDATA% C:\Documents and Settings\{username} \Application Data
%COMPUTERNAME% {computername}
%COMSPEC% C:\Windows\System32\cmd.exe
%HOMEDRIVE% C:
%HOMEPATH% \Documents and Settings\{username}
%PATH% C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem
%PATHEXT% .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS ; .WSF; .WSH
%PROGRAMFILES% Directory containing program files
%PROMPT% Code for current command prompt format. Code is usually $P$G
%SYSTEMDRIVE% The drive containing the Windows root directory
%SYSTEMROOT% The Windows root directory
%TEMP% and %TMP% C:\DOCUME~1\{username}\LOCALS~1\Temp
%USERNAME% {username}
%USERPROFILE% C:\Documents and Settings\{username}
%WINDIR% C:\Windows
%DATE% 當前日期
%TIME% 目前時間
%CD% 目前目錄
%ERRORLEVEL% 錯誤碼
%RANDOM% Random number between 0 and 32767
%APPDATA% C:\Documents and Settings\{username} \Application Data
%COMPUTERNAME% {computername}
%COMSPEC% C:\Windows\System32\cmd.exe
%HOMEDRIVE% C:
%HOMEPATH% \Documents and Settings\{username}
%PATH% C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem
%PATHEXT% .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS ; .WSF; .WSH
%PROGRAMFILES% Directory containing program files
%PROMPT% Code for current command prompt format. Code is usually $P$G
%SYSTEMDRIVE% The drive containing the Windows root directory
%SYSTEMROOT% The Windows root directory
%TEMP% and %TMP% C:\DOCUME~1\{username}\LOCALS~1\Temp
%USERNAME% {username}
%USERPROFILE% C:\Documents and Settings\{username}
%WINDIR% C:\Windows
%DATE% 當前日期
%TIME% 目前時間
%CD% 目前目錄
%ERRORLEVEL% 錯誤碼
%RANDOM% Random number between 0 and 32767
訂閱:
文章 (Atom)