本帖最后由 yu2n 于 2016-8-2 22:07 编辑
CmdCapture 是一个免费的命令行的截图软件。
(此时,百度搜索不到此软件 -.-# ,以下为笔者手打,若有出入请见谅)
CmdCapture 支持丰富的命令参数来得到系统变量的当前时间、IP地址、操作系统类型……等等,
这些变量可以用来动态设定图片的保存位置,指定文件名称。
CmdCapture 支持将截图保存为 png / jpg / bmp / tif / gif 格式。
软件官方网站:http://www.ducklink.com/p/command-line-screen-capture/
软件下载地址:http://www.ducklink.com/CmdCapture.exe
杀软扫描结果:http://r.virscan.org/74bdc5d8338a430027be6f81034442f3
示例:
不使用任何参数运行时,截屏将以png图片类型保存至当前目录,如下所示:- C:\Users\Yu2n>C:\Users\Yu2n\Downloads\CmdCapture.exe
- @HOUR: Hours value of clock in 24-hour format. Range is 00 to 23
- Sample Value: 21
- @MDAY: Current day of month. Range is 01 to 31
- Sample Value: 02
- @MIN: Minutes value of clock. Range is 00 to 59
- Sample Value: 31
- @MON: Current month. Range is 01 to 12
- Sample Value: 08
- @MSEC: Milliseconds value of clock. Range is 00 to 999
- Sample Value: 118
- @SEC: Seconds value of clock. Range is 00 to 59
- Sample Value: 53
- @WDAY: Numeric day of week. Range is 1 to 7 which corresponds to Sunday through Saturday.
- Sample Value: 3
- @YDAY: Current day of year. Range is 001 to 366 (or 001 to 365 if not a leap year)
- Sample Value: 215
- @YEAR: Current four-digit year
- Sample Value: 2016
- @ComputerName: Computer's network name.
- Sample Value: YU2N-PC
- @ComSpec: value of %comspec%, the SPECified secondary COMmand interpreter; primarily for command line uses, e.g. Run(@ComSpec & " /k help | more")
- Sample Value: C:\Windows\system32\cmd.exe
- @CPUArch: Returns "X86" when the CPU is a 32-bit CPU and "X64" when the CPU is 64-bit.
- Sample Value: X64
- @HomeShare: Server and share name containing current user's home directory.
- Sample Value:
- @IPAddress1: IP address of first network adapter. Tends to return 127.0.0.1 on some computers.
- Sample Value: 192.168.1.64
- @IPAddress2: IP address of second network adapter. Returns 0.0.0.0 if not applicable.
- Sample Value: 0.0.0.0
- @IPAddress3: IP address of third network adapter. Returns 0.0.0.0 if not applicable.
- Sample Value: 0.0.0.0
- @IPAddress4: IP address of fourth network adapter. Returns 0.0.0.0 if not applicable.
- Sample Value: 0.0.0.0
- @LogonDNSDomain: Logon DNS Domain.
- Sample Value:
- @LogonDomain: Logon Domain.
- Sample Value: Yu2n-PC
- @LogonServer: Logon server.
- Sample Value: \\YU2N-PC
- @OSArch: Returns one of the following: "X86", "IA64", "X64" - this is the architecture type of the currently running operating system.
- Sample Value: X64
- @OSBuild: Returns the OS build number. For example, Windows 2003 Server returns 3790
- Sample Value: 9200
- @OSLang: Returns code denoting OS Language. See Appendix for possible values.
- Sample Value: 0804
- @OSServicePack: Service pack info in the form of "Service Pack 3".
- Sample Value:
- @OSType: Returns "WIN32_NT" for NT/2000/XP/2003/Vista/2008/Win7/2008R2.
- Sample Value: WIN32_NT
- @OSVersion: Returns one of the following: "WIN_2008R2", "WIN_7", "WIN_2008", "WIN_VISTA", "WIN_2003", "WIN_XP", "WIN_XPe", "WIN_2000".
- Sample Value: UNKNOWN
- @UserName: ID of the currently logged on user.
- Sample Value: Yu2n
- @DesktopHeight: Height of the desktop screen in pixels. (vertical resolution)
- Sample Value: 864
- @DesktopWidth: Width of the desktop screen in pixels. (horizontal resolution)
- Sample Value: 1536
- @DesktopDepth: Depth of the desktop screen in bits per pixel.
- Sample Value: 32
- @DesktopRefresh: Refresh rate of the desktop screen in hertz.
- Sample Value: 60
- @AppDataCommonDir: path to Application Data
- Sample Value: C:\ProgramData
- @AppDataDir: path to current user's Application Data
- Sample Value: C:\Users\Yu2n\AppData\Roaming
- @CommonFilesDir: path to Common Files folder
- Sample Value: C:\Program Files (x86)\Common Files
- @DesktopCommonDir: path to Desktop
- Sample Value: C:\Users\Public\Desktop
- @DesktopDir: path to current user's Desktop
- Sample Value: C:\Users\Yu2n\Desktop
- @DocumentsCommonDir: path to Documents
- Sample Value: C:\Users\Public\Documents
- @FavoritesCommonDir: path to Favorites
- Sample Value: C:\Users\Yu2n\Favorites
- @FavoritesDir: path to current user's Favorites
- Sample Value: C:\Users\Yu2n\Favorites
- @HomeDrive: Drive letter of drive containing current user's home directory.
- Sample Value: C:
- @HomePath: Directory part of current user's home directory. To get the full path, use in conjunction with @HomeDrive.
- Sample Value: \Users\Yu2n
- @MyDocumentsDir: path to My Documents target
- Sample Value: C:\Users\Yu2n\Documents
- @ProgramFilesDir: path to Program Files folder
- Sample Value: C:\Program Files (x86)
- @ProgramsCommonDir: path to Start Menu's Programs folder
- Sample Value: C:\ProgramData\Microsoft\Windows\Start Menu\Programs
- @ProgramsDir: path to current user's Programs (folder on Start Menu)
- Sample Value: C:\Users\Yu2n\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
- @ScriptDir: Directory containing the running script. (Result does not contain a trailing backslash)
- Sample Value: C:\Users\Yu2n\Downloads
- @StartMenuCommonDir: path to Start Menu folder
- Sample Value: C:\ProgramData\Microsoft\Windows\Start Menu
- @StartMenuDir: path to current user's Start Menu
- Sample Value: C:\Users\Yu2n\AppData\Roaming\Microsoft\Windows\Start Menu
- @StartupCommonDir: path to Startup folder
- Sample Value: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
- @StartupDir: current user's Startup folder
- Sample Value: C:\Users\Yu2n\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
- @SystemDir: path to Windows' System (or System32) folder
- Sample Value: C:\Windows\SysWOW64
- @TempDir: Path to the temporary files folder.
- Sample Value: R:\TEMP
- @UserProfileDir: Path to current user's Profile folder.
- Sample Value: C:\Users\Yu2n
- @WindowsDir: path to Windows folder
- Sample Value: C:\Windows
- @WorkingDir: Current/active working directory. (Result does not contain a trailing backslash)
- Sample Value: C:\Users\Yu2n
- File Name: Snap - 2016-08-02 21.31.53.png
复制代码 以上示例生成文件为:C:\Users\Yu2n\Snap - 2016-08-02 21.31.53.png
更多的功能,请参阅帮助:- C:\Users\Yu2n>C:\Users\Yu2n\Downloads\CmdCapture.exe /?
-
- CmdCapture 2.0
- Usage: [/d <directory>] [/f <filename>] [/h]
-
- /d Select folder to output captured image files. If you didn't specify file name with full path, or you left file name parameter blank, a file with default name will be put into the folder specified in this area.
-
- /f Followed by the filename you'd like to use. CmdCapture uses the file extension to determine the output file type. The extension should be one of the following values:
- png: Save a PNG file.
- jpg: Save a JPEG file.
- bmp: Save a Windows bitmap file.
- tif: Save a TIFF file.
- gif: Save a GIF file.
- The default file type is PNG. The default file name is based on your local time, and the format is:
- "Snap - @YEAR-@MON-@MDAY @HOUR.@MIN.@SEC.png", available variables:
- @HOUR: Hours value of clock in 24-hour format. Range is 00 to 23
- @MDAY: Current day of month. Range is 01 to 31
- @MIN: Minutes value of clock. Range is 00 to 59
- @MON: Current month. Range is 01 to 12
- @MSEC: Milliseconds value of clock. Range is 00 to 999
- @SEC: Seconds value of clock. Range is 00 to 59
- @WDAY: Numeric day of week. Range is 1 to 7 which corresponds to Sunday through Saturday.
- @YDAY: Current day of year. Range is 001 to 366 (or 001 to 365 if not a leap year)
- @YEAR: Current four-digit year
- @ComputerName: Computer's network name.
- @ComSpec: value of %comspec%, the SPECified secondary COMmand interpreter; primarily for command line uses, e.g. Run(@ComSpec & " /k help | more")
- @CPUArch: Returns "X86" when the CPU is a 32-bit CPU and "X64" when the CPU is 64-bit.
- @HomeShare: Server and share name containing current user's home directory.
- @IPAddress1: IP address of first network adapter. Tends to return 127.0.0.1 on some computers.
- @IPAddress2: IP address of second network adapter. Returns 0.0.0.0 if not applicable.
- @IPAddress3: IP address of third network adapter. Returns 0.0.0.0 if not applicable.
- @IPAddress4: IP address of fourth network adapter. Returns 0.0.0.0 if not applicable.
- @LogonDNSDomain: Logon DNS Domain.
- @LogonDomain: Logon Domain.
- @LogonServer: Logon server.
- @OSArch: Returns one of the following: "X86", "IA64", "X64" - this is the architecture type of the currently running operating system.
- @OSBuild: Returns the OS build number. For example, Windows 2003 Server returns 3790
- @OSLang: Returns code denoting OS Language. See Appendix for possible values.
- @OSServicePack: Service pack info in the form of "Service Pack 3".
- @OSType: Returns "WIN32_NT" for NT/2000/XP/2003/Vista/2008/Win7/2008R2.
- @OSVersion: Returns one of the following: "WIN_2008R2", "WIN_7", "WIN_2008", "WIN_VISTA", "WIN_2003", "WIN_XP", "WIN_XPe", "WIN_2000".
- @UserName: ID of the currently logged on user.
- @DesktopHeight: Height of the desktop screen in pixels. (vertical resolution)
- @DesktopWidth: Width of the desktop screen in pixels. (horizontal resolution)
- @DesktopDepth: Depth of the desktop screen in bits per pixel.
- @DesktopRefresh: Refresh rate of the desktop screen in hertz.
- @AppDataCommonDir: path to Application Data
- @AppDataDir: path to current user's Application Data
- @CommonFilesDir: path to Common Files folder
- @DesktopCommonDir: path to Desktop
- @DesktopDir: path to current user's Desktop
- @DocumentsCommonDir: path to Documents
- @FavoritesCommonDir: path to Favorites
- @FavoritesDir: path to current user's Favorites
- @HomeDrive: Drive letter of drive containing current user's home directory.
- @HomePath: Directory part of current user's home directory. To get the full path, use in conjunction with @HomeDrive.
- @MyDocumentsDir: path to My Documents target
- @ProgramFilesDir: path to Program Files folder
- @ProgramsCommonDir: path to Start Menu's Programs folder
- @ProgramsDir: path to current user's Programs (folder on Start Menu)
- @ScriptDir: Directory containing the running script. (Result does not contain a trailing backslash)
- @StartMenuCommonDir: path to Start Menu folder
- @StartMenuDir: path to current user's Start Menu
- @StartupCommonDir: path to Startup folder
- @StartupDir: current user's Startup folder
- @SystemDir: path to Windows' System (or System32) folder
- @TempDir: Path to the temporary files folder.
- @UserProfileDir: Path to current user's Profile folder.
- @WindowsDir: path to Windows folder
- @WorkingDir: Current/active working directory. (Result does not contain a trailing backslash)
-
- /h Displays help on the command line parameters.
复制代码
|