Board logo

标题: [其他] CmdCapture 命令行截图软件 [打印本页]

作者: yu2n    时间: 2016-8-2 21:59     标题: CmdCapture 命令行截图软件

本帖最后由 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图片类型保存至当前目录,如下所示:
  1. C:\Users\Yu2n>C:\Users\Yu2n\Downloads\CmdCapture.exe
  2. @HOUR: Hours value of clock in 24-hour format. Range is 00 to 23
  3. Sample Value: 21
  4. @MDAY: Current day of month. Range is 01 to 31
  5. Sample Value: 02
  6. @MIN: Minutes value of clock. Range is 00 to 59
  7. Sample Value: 31
  8. @MON: Current month. Range is 01 to 12
  9. Sample Value: 08
  10. @MSEC: Milliseconds value of clock.  Range is 00 to 999
  11. Sample Value: 118
  12. @SEC: Seconds value of clock. Range is 00 to 59
  13. Sample Value: 53
  14. @WDAY: Numeric day of week. Range is 1 to 7 which corresponds to Sunday through Saturday.
  15. Sample Value: 3
  16. @YDAY: Current day of year. Range is 001 to 366 (or 001 to 365 if not a leap year)
  17. Sample Value: 215
  18. @YEAR: Current four-digit year
  19. Sample Value: 2016
  20. @ComputerName: Computer's network name.
  21. Sample Value: YU2N-PC
  22. @ComSpec: value of %comspec%, the SPECified secondary COMmand interpreter; primarily for command line uses, e.g.  Run(@ComSpec & " /k help | more")
  23. Sample Value: C:\Windows\system32\cmd.exe
  24. @CPUArch: Returns "X86" when the CPU is a 32-bit CPU and "X64" when the CPU is 64-bit.
  25. Sample Value: X64
  26. @HomeShare: Server and share name containing current user's home directory.
  27. Sample Value:
  28. @IPAddress1: IP address of first network adapter. Tends to return 127.0.0.1 on some computers.
  29. Sample Value: 192.168.1.64
  30. @IPAddress2: IP address of second network adapter. Returns 0.0.0.0 if not applicable.
  31. Sample Value: 0.0.0.0
  32. @IPAddress3: IP address of third network adapter. Returns 0.0.0.0 if not applicable.
  33. Sample Value: 0.0.0.0
  34. @IPAddress4: IP address of fourth network adapter. Returns 0.0.0.0 if not applicable.
  35. Sample Value: 0.0.0.0
  36. @LogonDNSDomain: Logon DNS Domain.
  37. Sample Value:
  38. @LogonDomain: Logon Domain.
  39. Sample Value: Yu2n-PC
  40. @LogonServer: Logon server.
  41. Sample Value: \\YU2N-PC
  42. @OSArch: Returns one of the following: "X86", "IA64", "X64" - this is the architecture type of the currently running operating system.
  43. Sample Value: X64
  44. @OSBuild: Returns the OS build number. For example, Windows 2003 Server returns 3790
  45. Sample Value: 9200
  46. @OSLang: Returns code denoting OS Language.  See Appendix for possible values.
  47. Sample Value: 0804
  48. @OSServicePack: Service pack info in the form of "Service Pack 3".
  49. Sample Value:
  50. @OSType: Returns "WIN32_NT" for NT/2000/XP/2003/Vista/2008/Win7/2008R2.
  51. Sample Value: WIN32_NT
  52. @OSVersion: Returns one of the following: "WIN_2008R2", "WIN_7", "WIN_2008", "WIN_VISTA", "WIN_2003", "WIN_XP", "WIN_XPe", "WIN_2000".
  53. Sample Value: UNKNOWN
  54. @UserName: ID of the currently logged on user.
  55. Sample Value: Yu2n
  56. @DesktopHeight: Height of the desktop screen in pixels. (vertical resolution)
  57. Sample Value: 864
  58. @DesktopWidth: Width of the desktop screen in pixels. (horizontal resolution)
  59. Sample Value: 1536
  60. @DesktopDepth: Depth of the desktop screen in bits per pixel.
  61. Sample Value: 32
  62. @DesktopRefresh: Refresh rate of the desktop screen in hertz.
  63. Sample Value: 60
  64. @AppDataCommonDir: path to Application Data
  65. Sample Value: C:\ProgramData
  66. @AppDataDir: path to current user's Application Data
  67. Sample Value: C:\Users\Yu2n\AppData\Roaming
  68. @CommonFilesDir: path to Common Files folder
  69. Sample Value: C:\Program Files (x86)\Common Files
  70. @DesktopCommonDir: path to Desktop
  71. Sample Value: C:\Users\Public\Desktop
  72. @DesktopDir: path to current user's Desktop
  73. Sample Value: C:\Users\Yu2n\Desktop
  74. @DocumentsCommonDir: path to Documents
  75. Sample Value: C:\Users\Public\Documents
  76. @FavoritesCommonDir: path to Favorites
  77. Sample Value: C:\Users\Yu2n\Favorites
  78. @FavoritesDir: path to current user's Favorites
  79. Sample Value: C:\Users\Yu2n\Favorites
  80. @HomeDrive: Drive letter of drive containing current user's home directory.
  81. Sample Value: C:
  82. @HomePath: Directory part of current user's home directory. To get the full path, use in conjunction with @HomeDrive.
  83. Sample Value: \Users\Yu2n
  84. @MyDocumentsDir: path to My Documents target
  85. Sample Value: C:\Users\Yu2n\Documents
  86. @ProgramFilesDir: path to Program Files folder
  87. Sample Value: C:\Program Files (x86)
  88. @ProgramsCommonDir: path to Start Menu's Programs folder
  89. Sample Value: C:\ProgramData\Microsoft\Windows\Start Menu\Programs
  90. @ProgramsDir: path to current user's Programs (folder on Start Menu)
  91. Sample Value: C:\Users\Yu2n\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
  92. @ScriptDir: Directory containing the running script. (Result does not contain a trailing backslash)
  93. Sample Value: C:\Users\Yu2n\Downloads
  94. @StartMenuCommonDir: path to Start Menu folder
  95. Sample Value: C:\ProgramData\Microsoft\Windows\Start Menu
  96. @StartMenuDir: path to current user's Start Menu
  97. Sample Value: C:\Users\Yu2n\AppData\Roaming\Microsoft\Windows\Start Menu
  98. @StartupCommonDir: path to Startup folder
  99. Sample Value: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
  100. @StartupDir: current user's Startup folder
  101. Sample Value: C:\Users\Yu2n\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
  102. @SystemDir: path to Windows' System (or System32) folder
  103. Sample Value: C:\Windows\SysWOW64
  104. @TempDir: Path to the temporary files folder.
  105. Sample Value: R:\TEMP
  106. @UserProfileDir: Path to current user's Profile folder.
  107. Sample Value: C:\Users\Yu2n
  108. @WindowsDir: path to Windows folder
  109. Sample Value: C:\Windows
  110. @WorkingDir: Current/active working directory. (Result does not contain a trailing backslash)
  111. Sample Value: C:\Users\Yu2n
  112. File Name: Snap - 2016-08-02 21.31.53.png
复制代码
以上示例生成文件为:C:\Users\Yu2n\Snap - 2016-08-02 21.31.53.png


更多的功能,请参阅帮助:
  1. C:\Users\Yu2n>C:\Users\Yu2n\Downloads\CmdCapture.exe /?
  2. CmdCapture 2.0
  3. Usage: [/d <directory>] [/f <filename>] [/h]
  4. /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.
  5. /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:
  6.     png: Save a PNG file.
  7.     jpg: Save a JPEG file.
  8.     bmp: Save a Windows bitmap file.
  9.     tif: Save a TIFF file.
  10.     gif: Save a GIF file.
  11. The default file type is PNG. The default file name is based on your local time, and the format is:
  12. "Snap - @YEAR-@MON-@MDAY @HOUR.@MIN.@SEC.png", available variables:
  13.     @HOUR: Hours value of clock in 24-hour format. Range is 00 to 23
  14.     @MDAY: Current day of month. Range is 01 to 31
  15.     @MIN: Minutes value of clock. Range is 00 to 59
  16.     @MON: Current month. Range is 01 to 12
  17.     @MSEC: Milliseconds value of clock.  Range is 00 to 999
  18.     @SEC: Seconds value of clock. Range is 00 to 59
  19.     @WDAY: Numeric day of week. Range is 1 to 7 which corresponds to Sunday through Saturday.
  20.     @YDAY: Current day of year. Range is 001 to 366 (or 001 to 365 if not a leap year)
  21.     @YEAR: Current four-digit year
  22.     @ComputerName: Computer's network name.
  23.     @ComSpec: value of %comspec%, the SPECified secondary COMmand interpreter; primarily for command line uses, e.g.  Run(@ComSpec & " /k help | more")
  24.     @CPUArch: Returns "X86" when the CPU is a 32-bit CPU and "X64" when the CPU is 64-bit.
  25.     @HomeShare: Server and share name containing current user's home directory.
  26.     @IPAddress1: IP address of first network adapter. Tends to return 127.0.0.1 on some computers.
  27.     @IPAddress2: IP address of second network adapter. Returns 0.0.0.0 if not applicable.
  28.     @IPAddress3: IP address of third network adapter. Returns 0.0.0.0 if not applicable.
  29.     @IPAddress4: IP address of fourth network adapter. Returns 0.0.0.0 if not applicable.
  30.     @LogonDNSDomain: Logon DNS Domain.
  31.     @LogonDomain: Logon Domain.
  32.     @LogonServer: Logon server.
  33.     @OSArch: Returns one of the following: "X86", "IA64", "X64" - this is the architecture type of the currently running operating system.
  34.     @OSBuild: Returns the OS build number. For example, Windows 2003 Server returns 3790
  35.     @OSLang: Returns code denoting OS Language.  See Appendix for possible values.
  36.     @OSServicePack: Service pack info in the form of "Service Pack 3".
  37.     @OSType: Returns "WIN32_NT" for NT/2000/XP/2003/Vista/2008/Win7/2008R2.
  38.     @OSVersion: Returns one of the following: "WIN_2008R2", "WIN_7", "WIN_2008", "WIN_VISTA", "WIN_2003", "WIN_XP", "WIN_XPe", "WIN_2000".
  39.     @UserName: ID of the currently logged on user.
  40.     @DesktopHeight: Height of the desktop screen in pixels. (vertical resolution)
  41.     @DesktopWidth: Width of the desktop screen in pixels. (horizontal resolution)
  42.     @DesktopDepth: Depth of the desktop screen in bits per pixel.
  43.     @DesktopRefresh: Refresh rate of the desktop screen in hertz.
  44.     @AppDataCommonDir: path to Application Data
  45.     @AppDataDir: path to current user's Application Data
  46.     @CommonFilesDir: path to Common Files folder
  47.     @DesktopCommonDir: path to Desktop
  48.     @DesktopDir: path to current user's Desktop
  49.     @DocumentsCommonDir: path to Documents
  50.     @FavoritesCommonDir: path to Favorites
  51.     @FavoritesDir: path to current user's Favorites
  52.     @HomeDrive: Drive letter of drive containing current user's home directory.
  53.     @HomePath: Directory part of current user's home directory. To get the full path, use in conjunction with @HomeDrive.
  54.     @MyDocumentsDir: path to My Documents target
  55.     @ProgramFilesDir: path to Program Files folder
  56.     @ProgramsCommonDir: path to Start Menu's Programs folder
  57.     @ProgramsDir: path to current user's Programs (folder on Start Menu)
  58.     @ScriptDir: Directory containing the running script. (Result does not contain a trailing backslash)
  59.     @StartMenuCommonDir: path to Start Menu folder
  60.     @StartMenuDir: path to current user's Start Menu
  61.     @StartupCommonDir: path to Startup folder
  62.     @StartupDir: current user's Startup folder
  63.     @SystemDir: path to Windows' System (or System32) folder
  64.     @TempDir: Path to the temporary files folder.
  65.     @UserProfileDir: Path to current user's Profile folder.
  66.     @WindowsDir: path to Windows folder
  67.     @WorkingDir: Current/active working directory. (Result does not contain a trailing backslash)
  68. /h      Displays help on the command line parameters.
复制代码

作者: CrLf    时间: 2016-8-3 15:59

马克,回头加到 Batch-CN
作者: 523066680    时间: 2016-8-3 16:03

我以为是给终端截图/录像的工具,截出来是文本形式的

在OSC看到的一个asciinema,预览地址:
https://asciinema.org/a/42383?autoplay=1

播放的过程中随时可以复制里面的字符




欢迎光临 批处理之家 (http://bathome.net./) Powered by Discuz! 7.2