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
Copy files to clipboard through batch or hybrid
Moderator: DosItHelp
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: Copy files to clipboard through batch or hybrid
Just out of curiosity, why do you want to put the file on the clipboard instead of simply copying them to a target directory?
Re: Copy files to clipboard through batch or hybrid
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.