- 帖子
- 381
- 积分
- 1801
- 技术
- 9
- 捐助
- 0
- 注册时间
- 2008-10-27
|
2楼
发表于 2008-12-22 22:21
| 只看该作者
用命令行工具 nircmd
clipboard [Action] [Parameter]
Allows you to set a value into the clipboard and clear the clipboard.
[Action] may contain one of the following values:
- set - set the specified text into the clipboard.
- readfile - set the content of the specified text file into the clipboard.
- clear - clear the clipboard.
- writefile - write the content of the clipboard to a file. (text only)
- addfile - add the content of the clipboard to a file. (text only)
- saveimage - Save the current image in the clipboard into a file. The following file formats are supported: .bmp, .gif, .jpg, .png, .tiff Only works on computers with GDI+ installed (On XP/2003/Vista, GDI+ is installed as a part of the operating system).
Examples:
clipboard set "123456"
clipboard set ~$folder.desktop$
clipboard set ~$folder.start_menu$
clipboard readfile "c:\temp\info1.txt"
clipboard addfile "c:\temp\clip1.txt"
clipboard clear
clipboard saveimage "c:\temp\clip01.png"
clipboard saveimage "c:\temp\clip01.gif"
[ 本帖最后由 tireless 于 2008-12-22 22:23 编辑 ] |
|