Author Topic: Copy options  (Read 15004 times)

karthik

  • Active Member
  • ***
  • Posts: 56
    • View Profile
Copy options
« on: August 30, 2014, 19:02:01 »
Hello,

I have a directory say (Main) and inside this I have a set of files (file1, file2, etc) and folder (folder1, folder2, etc). Now I want to copy the Main directory to another location but I want to copy only the files in it and not the folders. Is there a filter I can use to do this?

Manually, I can do this by creating a Main directory in the target location and say Hide folders in source Main directory and copy the files alone. I am trying to see if there is a easy way to do it.

Thanks.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4491
    • View Profile
    • Multi Commander
Re: Copy options
« Reply #1 on: August 31, 2014, 01:26:59 »
You want to copy all files in all subdir into the same folder.

The easiest way is to do a search for all and then select only the files and copy them.

karthik

  • Active Member
  • ***
  • Posts: 56
    • View Profile
Re: Copy options
« Reply #2 on: August 31, 2014, 02:13:07 »
No, I want to copy only the files in the main directory. I want to exclude all subdirectories and its files.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4491
    • View Profile
    • Multi Commander
Re: Copy options
« Reply #3 on: August 31, 2014, 10:27:28 »
It is possible but not sure if it is easier.

Select "Main" folder
Press Copy

In the Copy to dialog.

1. Press Ctrl+F . to expand the dialog and show filter  enter "-/*" (without quotes.) this will exclude all folder.
but the problem is that "Main" is also a folder and will be excluded

2. So press Ctrl+P and focus is not in the FileOperation plugin. select "Content Copy" It will not copy the content in Main
to the target. and the filter will exclude all subfolders.
BUT now the "Main" folder on the target is not created.
So you have to add that to the end of the target path in the target field.
So If it say D:\MyTargetFolder You need to change it it D:\MyTargetFoler\Main
(So now when you know you have to do that, this is the first thing you do since the input focus when the dialog if first show in already in the this field.)


If you expand the advanced option in the CopyTo dialog you have a button for Set/Change Preset, there you can create a preset for all this option,  So you only press F1 (or what preset you save it on) for it to set all of this. And if the target path is always the same location you can also include that here.


« Last Edit: August 31, 2014, 10:35:44 by Mathias (Author) »

karthik

  • Active Member
  • ***
  • Posts: 56
    • View Profile
Re: Copy options
« Reply #4 on: September 01, 2014, 08:00:33 »
Thanks, Mathias. That helps.