Copy files to clipboard through batch or hybrid

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Olyrd
Posts: 25
Joined: 05 Feb 2016 07:36

Copy files to clipboard through batch or hybrid

#1 Post by Olyrd » 01 Apr 2016 14:45

Based on my knowledge, there is no way to copy a file to clipboard from CMD or Powershell. I'm interested in finding a way to copy a bunch of folders to clipboard in cmd so that they can be easily pasted afterwards using CTRL+V.

I know I can make a powershell-hybrid with a BrowseFolder object to select the destination for the copy process but the CTRL+V idea seems more flexible and somewhat easier.

Do you guys have any ideas on the matter?
Thanks

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Copy files to clipboard through batch or hybrid

#2 Post by ShadowThief » 01 Apr 2016 14:51

Just out of curiosity, why do you want to put the file on the clipboard instead of simply copying them to a target directory?

Olyrd
Posts: 25
Joined: 05 Feb 2016 07:36

Re: Copy files to clipboard through batch or hybrid

#3 Post by Olyrd » 01 Apr 2016 14:57

I have a USB stick which contains many folders, root folders and subfolders and so on. Every once in a while I need to make a back of a defined set of folders (ie. not all of them, just some). The destination for the copied folders is not always in the same place, as sometimes I save it on my portable HDD, otherwise on the HDD, depending what i have available at the moment. Due to this uncertanty, a predefined script will not be very usefull. As I said, it is way more flexible to have them in clipboard and just be ready to paste.

Post Reply