Browsing all articles from November, 2009
Command Line Screen Capture
CmdCapture is a free command line screen capture software.
CmdCapture accepts up to three pairs of parameters:
| /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:
The default file type is PNG. The default file name is based on your local time, and the format is:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /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. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /h | Displays help on the command line parameters. |
Download CmdCapture.exe (Win32 character-mode application. Console applications are given a console by the operating system.)
Download CmdCaptureWin.exe (Application does not require a console.)
Appendix: the sample value of variables in file name or directory name:
@HOUR: Hours value of clock in 24-hour format. Range is 00 to 23 Sample Value: 17 @MDAY: Current day of month. Range is 01 to 31 Sample Value: 29 @MIN: Minutes value of clock. Range is 00 to 59 Sample Value: 57 @MON: Current month. Range is 01 to 12 Sample Value: 10 @MSEC: Milliseconds value of clock. Range is 00 to 999 Sample Value: 479 @SEC: Seconds value of clock. Range is 00 to 59 Sample Value: 50 @WDAY: Numeric day of week. Range is 1 to 7 which corresponds to Sunday through Saturday. Sample Value: 7 @YDAY: Current day of year. Range is 001 to 366 (or 001 to 365 if not a leap year) Sample Value: 302 @YEAR: Current four-digit year Sample Value: 2011 @ComputerName: Computer's network name. Sample Value: MASON-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.101 @IPAddress2: IP address of second network adapter. Returns 0.0.0.0 if not applicable. Sample Value: 192.168.56.1 @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: Mason-PC @LogonServer: Logon server. Sample Value: \\MASON-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: 7601 @OSLang: Returns code denoting OS Language. See Appendix for possible values. Sample Value: 0409 @OSServicePack: Service pack info in the form of "Service Pack 3". Sample Value: Service Pack 1 @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: WIN_7 @UserName: ID of the currently logged on user. Sample Value: Mason @DesktopHeight: Height of the desktop screen in pixels. (vertical resolution) Sample Value: 1200 @DesktopWidth: Width of the desktop screen in pixels. (horizontal resolution) Sample Value: 1920 @DesktopDepth: Depth of the desktop screen in bits per pixel. Sample Value: 32 @DesktopRefresh: Refresh rate of the desktop screen in hertz. Sample Value: 59 @AppDataCommonDir: path to Application Data Sample Value: C:\ProgramData @AppDataDir: path to current user's Application Data Sample Value: C:\Users\Mason\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\Mason\Desktop @DocumentsCommonDir: path to Documents Sample Value: C:\Users\Public\Documents @FavoritesCommonDir: path to Favorites Sample Value: C:\Users\Mason\Favorites @FavoritesDir: path to current user's Favorites Sample Value: C:\Users\Mason\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\Mason @MyDocumentsDir: path to My Documents target Sample Value: C:\Users\Mason\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\Mason\AppData\Roaming\Microsoft\Windows\Start Menu\Programs @ScriptDir: Directory containing the running script. (Result does not contain a trailing backslash) Sample Value: U:\Solutions\Install\DuckCapture @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\Mason\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\Mason\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: C:\Users\Mason\AppData\Local\Temp @UserProfileDir: Path to current user's Profile folder. Sample Value: C:\Users\Mason @WindowsDir: path to Windows folder Sample Value: C:\Windows @WorkingDir: Current/active working directory. (Result does not contain a trailing backslash) Sample Value: U:\Solutions\Install\DuckCapture
Via RSS
By Email
Posted by Mason in