[user-defined command] Copying multiple items to a location

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
smahesh555
Posts: 31
Joined: 04 Feb 2013 09:55

[user-defined command] Copying multiple items to a location

Post by smahesh555 »

Hi,

As part of my work, I require to copy few files from a particular directory to another directory frequently. I recently discovered the feature of 'user-defined' commands for this. However I face a problem something as below:

Say I need to copy only two particular files from D:\temp\1 to D:\temp\2.

In the source field of the 'Manage User-define commands' window, I tried the following inputs in the source input field:

D:\temp\1\abc.txt,D:\temp\1\def.txt
D:\temp\1\abc.txt;D:\temp\1\def.txt
"D:\temp\1\abc.txt","D:\temp\1\def.txt"
"D:\temp\1\abc.txt","D:\temp\1\def.txt"

But none seem to work.

- I could write d:\temp\*.txt, but this copies all files including ones I do not want as well
- If this is not supported, please consider it as a wish and let know if possible to provide
- If there is some way to do this already, please let me know the solution and move this post to 'Bug Report'

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: [user-defined command] Copying multiple items to a locat

Post by bdeshi »

You need to use pipe, "|" to sepreate multiple source files. Here's a UDC setting screenshot that should do exactly what you need:
udccopyparticulars.png
To see the attached files, you need to log into the forum.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

smahesh555
Posts: 31
Joined: 04 Feb 2013 09:55

Re: [user-defined command] Copying multiple items to a locat

Post by smahesh555 »

@SammaySarkar, thanks a lot

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: [user-defined command] Copying multiple items to a locat

Post by bdeshi »

My pleasure!
by the way, you can learn more by pressing the "tips" button, or the :!: graphic in blue in XY's dialogs
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply