Introduction:
ClipboardEx Script command which provides additional clipboard related functionality.
This command adds new features and extends functionality of these existing script addins:
ClipAtt - Thanks Leo, took your code o):
PasteToFolders (obsolete):
.
Main command line switches:
-
COPYTIMESTAMPS
Copy timestamps of selected items to (DO internal) clipboard.Options: <all> = default, copy all timestamps created = copy only creation timestamp modified = copy only modified timestamp Example: ClipboardEX COPYTIMESTAMPS FROM=C:\File01.txt ClipboardEX PASTETIMESTAMPS TO=C:\File02.txt Or in one single step: ClipboardEX COPYTIMESTAMPS FROM=C:\File01.txt TO=C:\File02.txt
-
PASTETIMESTAMPS
Paste timestamps to selected items from (DO internal) clipboard.
Timestamps will cycle if there are more items than timestamps in the internal clipboard.Options: <all> = default, copy all timestamps created = copy only creation timestamp modified = copy only modified timestamp Example: ClipboardEX PASTETIMESTAMPS ClipboardEX PASTETIMESTAMPS=created ClipboardEX PASTETIMESTAMPS TO=C:\File02.txt
-
FROM
Specifiy items to copy from (separate full item-paths by ";")
Meant to be used with COPYTIMESTAMPS (optional in this case, since current selection will be used). -
TO
Specifiy items to copy timestamps to (separate full item-paths by ";")
Meant to be used with COPYTIMESTAMPS, PASTETIMESTAMPS (optional in this case, since current selection will be used). -
COPYNAMES/K Copy paths and filenames of selected items to clipboard.
Options: allunc = Contrary to the internal "Clipboard COPYNAMES=unc" command, this one does convert file-paths to UNC format *even for local drives* by autodetecting the local ip-address. Local drive letters will be converted to admin-shares (C: -> \\localhost\C$). For pasting, please watch the PASTEFROMCLIP switch. The default Clipboard COPYNAMES command will be used if no option is given.
-
PASTEFROMCLIP/S
Paste clipboard items. Contrary to the internal "Clipboard PASTE" command, this ne also supports filesystem items from a textual list in the clipboard. This is handy if you stored paths to files and folders in text form (in an email e.g.) and want to create real copies of these items. -
PASTETOFOLDERS/S
Paste text or regular items from the clipboard to all selected folders. The dedicated script command "PasteToFolders" is obsolete with this, will not be updated anymore and does not support textual clipboard content.FOLDERS/O Since v.0.3.7 you can also specifiy the target folders by providing a single path or multiple paths to the FOLDERS option (separate paths by ";"). -
-
PASTETOCONTAINERS/S
Paste text or regular items from the clipboard to the containing folder of selected items. This is handy for moving items around in "flatview no folders" mode. You can move and copy items by pasting items directly over others, which already reside in the desired target. The location column is a good place to see where your items go. -
MOVE/S
Move items instead of copying them.
Meant to be used with PASTEFROMCLIP, PASTETOFOLDERS and PASTETOCONTAINERS. -
PASTEEMPTY/S
Create empty files or folders from text, paths or filenames in clipboard. Very handy for quickly creating a bunch of empty files to test commands or scripts on. Empty folders need a trailing "\" to be identified as folders if you use text clipboard data. Location information (drive or UNC hostname) will always be ignored when creating the empty files and folders. Just the plain path information will be rebuilt. To create empty files without path/folder information, use "Copy File Names" function from the Edit menu (Clipboard COPYNAMES=nopaths) before or just don't provide path information in the text clipboard. -
TRIM/O
Trim clipboard content. Trimming left and right is default handling.
You can trim left by using TRIM=left or trim only on the right hand side with TRIM=right. -
TRIMCHARS/O
The characters to trim. Default is " " (blanks). -
CLEAR/S
Clear clipboard content. -
PT/R
Pass through any option or switch to internally used DO commands.
Example:
Global switches:
- XLOG/O
Level of output, defaults to normal, which means important information only.
Options: off,xit,err,inf,warn,< normal >,trace,dump,all
.
Installation:
To install the command, download the *.js.txt file below and drag it to Preferences / Toolbars / Scripts.
After that the command shall be ready to use in buttons, scripts and externally from dopusrt.exe of course.
cya,
tbone
.
Download:
Latest:
-
v0.4.2 - 2017/08/29 - PASTEEMPTY bugfix
Command.Generic_ClipboardEx.js.txt (64.4 KB) -
v0.4.1 - 2017/05/27 - COPYTIMESTAMPS and PASTETIMESTAMPS features added
Command.Generic_ClipboardEx.js.txt (63.7 KB) -
v0.3.9 - 2017/01/23 - version string correction
Command.Generic_ClipboardEx.js.txt (50.8 KB) -
v0.3.8 - 2016/11/09 - new option PT for passing through of parameters
Command.Generic_ClipboardEx.js.txt (50.7 KB) -
v0.3.7 - 2016/09/21 - new "FOLDERS" option to be used with "PASTETOFOLDERS"
Command.Generic_ClipboardEx.js.txt (50.1 KB)