Windows下列出所有文件清单的Dos命令

Categories: 分享; Tagged with: ; @ November 14th, 2011 22:40

Command: dir/s/b > list.txt
Output:

D:\PatchScriptsForAppTest\35315_deltas.xnr
D:\PatchScriptsForAppTest\35338_Part1_Translations.xnr
D:\PatchScriptsForAppTest\35338_part2_XeAppMenus.xnr
D:\PatchScriptsForAppTest\35345_Translations_IN_OUT.xnr

More info: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/dir.mspx?

CMD/DOS 变量 – CMD/DOS Variable Reference

Categories: Development Notes; Tagged with: ; @ March 5th, 2009 0:36
Variable

Sample Typical Value

%SystemDrive%

C:

%SystemRoot%

C:\WINNT
C:\WINDOWS

%WinDir%

C:\WINNT
C:\WINDOWS

%SystemDirectory%

C:\WINNT\System32
C:\WINDOWS\System32

%ComSpec%

C:\WINNT\system32\cmd.exe

%programfiles%

C:\WINNT\Program Files

%Temp%

C:\DOCUME~1\Usr\LOCALS~1\Temp from
C:\Documents and Settings\Usr\Local Settings\Temp

%Tmp%

%HOMEDRIVE%

C: The drive letter associated with the user’s home directory

%HOMEPATH%

The path to the user’s home directory (excluding drive):
\Documents and Settings\Guest

%OS%

Windows_NT (even on Windows XP machines
The operating system the user is running

%USERDOMAIN%

The name of the domain that contains the user’s account

%USERNAME%

The user’s name

%USERPROFILE%
%USERPROFILE%\Desktop

The user’s desktop folder

%CD%

The current directory.

%DATE%

Current date in the format set by the Date command

%TIME%

Current time in the format set by the Time command

%ERRORLEVEL%

A number defining exit status of a previous command or called executable

%RANDOM%

A random number between 0 and 32767.



// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.