Dan Bron wrote: > David Mitchell wrote: >> http://www.jsoftware.com/jwiki/Scripts/WindowsClipboard > > Hey, neat! This avoids relying on 11!:0 for these functions, so I can use > it in lieu of wdclip (at least when both client and server are on the same > machine, which is my normal use). As Ambrus said, I could've also used an > external tool, but I prefer everything in native J, if I can get it (easier > to port). > >> setcliptext'Mooga Mooga' >> setclipfiles'This';'is';'files' > > Does anyone know the purpose of setclipfiles and how it would differ from > e.g. ([: setcliptext@:; ,&CRLF&.>) ? > > -Dan >
setclipfiles duplicates the clipboard structure created by a Windows file selection and copy. You can enter one or more file names and paths and any Windows application that recognizes that convention will act on that list of files. It can be used to create lists of file names for 'drag and drop' processing. My example was not very helpful. A more typical use might be: setclipfiles 'C:\Users\xx\j602-user\projects\Misc\clipboard.ijs';'C:\Users\xx\j602-user\projects\Misc\bigcopy.ijs';'C:\Users\xx\j602-user\projects\Misc\bigscan.ijs' It is the inverse, somewhat, of wd'clippaste 2'. -- David Mitchell ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
