DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: how to copy the selected file into the clipboard (like explorer do)  (Read 7,582 times)

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 560
Hi all,

i'd like to be able to copy the selected file in the result list to the clipboard the way explorer do...
that means that i could later copy the file in any explorer...

i found a utility called ezclip but it does not work all the time... (well for me it works 1 out of 10 :tellme:)
http://blogs.msdn.com/gusperez/articles/86378.aspx

do you know any command line utility to do that ?
is it doable with autohotkey or vbs ?

@mouser, i think this also could be a feature request... could be a nice addition

Nitrix

[edit]
ps: the way i can do it now, it by selecting the shell context menu (by right clicking the item)
THAT is when mouser's too clever +action modifier does not come in the way  :D (please fix please fix)
« Last Edit: August 14, 2007, 05:20 PM by nitrix-ud »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
i'm confused..

you can select a result item in FARR and hit ctrl+c to copy it's path to clipboard. is that what you are asking about?

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 560
nope this is not what i'm asking :(

when you ctrl+c in explorer or in any explorer
if you ctrl+v, it will paste the files you selected

if in FARR i select and hit ctrl+c
i cannot paste the file anywhere

to be able to copy the file, i have to open the shell context menu...then select copy

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 560
the only lead i found is in visual basic

Quote
The code below allows you to copy file(s) to the clipboard. Simply call the ClipboardCopyFiles procedure with an array of file paths.
see the url for the code
http://www.developerfusion.co.uk/show/224/

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
ok i could add that, maybe with like ctrl+shift+C

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
ok i could add that, maybe with like ctrl+shift+C
Good idea!  :)
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 560
yes and in the context menu ?  :D

and as a command : \COPYFILE  ???

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 560
that would be pretty much like the copyclip command

Quote
copyclip STRING_TO_COPY - copies text into clipboard


feel free to copy and paste to the help file  :D
Quote
copyfile FILE_TO_COPY - copies file into clipboard

Cheers, Nitrix


[edit]
very handy to paste a word template in a folder for example... or any file you use a lot
1) invoke FARR
2) choose template (from an alias)
3) in explorer/directoryopus/... paste the template
« Last Edit: August 14, 2007, 10:04 PM by nitrix-ud »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
nitrix-ud, IIRC you can also drag the files shown in Farr's result window into another location.. btw, if you want to use the context-menu to move/copy files around, this software would come in handy..

• Send To Toys

Quote from: "website"
What's New in version 2.5 (2/10/2007)

• Added Send To "Default Mail Recipient"
• Added Start Menu shortcut to configure Send To Toys
• Send To "Folder...": Added create shortcuts mode, and added option to clear the recent folders history directly from the menu
• Send To "Clipboard (as name)": Added options to sort the list of files, and to use the short file names
• Send To "Recycle Bin": Added progress dialog during shredding of large files
• Send To "Run...": Fixed bug with OK button not being enabled when the history is empty
• Send To "Favorites": Fixed bug that would not show the "Add Favorite" dialog when adding more than one file
• Full Unicode support
• Fixed minor bugs

Original address: https://www.donationcoder.com/forum/index.php?topic=9569.0