Purpose
Copy files to the clipboard

With GuiXT CopyText ... -toClipboard you can copy text to the clipboard, but not files

Solution
Use a JavaScript or VB call which invokes the "Shell.Application" object.

Example
The following JavaScript function copies a given file to the clipboard. It can also be used to copy a whole subfolder.

JavaScript

 

GuiXT script:

GuiXT

CallJS to_clipboard "C:\temp"  "abc.txt"   



GuiXT script to copy a subfolder "images":

GuiXT
CallJS to_clipboard "C:\temp"  "images"   

 

Remark
If you prefer to copy all files of a given subfolder, e.g. "images" in the example, use the following function:

JavaScript



GuiXT script to copy all files of subfolder "images":

GuiXT

CallJS files_to_clipboard "C:\temp"  "images"   

 

Components
InputAssistant + Controls