copy ini files with specific names

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
totalcommanderuser
Junior Member
Junior Member
Posts: 5
Joined: 2020-06-04, 09:13 UTC

copy ini files with specific names

Post by *totalcommanderuser »

hi. i want to copy a top folder with a bunch of subfolders, but i want to copy only *.ini files that called "settings" from there
and also, preserve full path on the destination
how can i do that?

thank you
User avatar
nsp
Power Member
Power Member
Posts: 1925
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: copy ini files with specific names

Post by *nsp »

When you copy you can specify in the dialog the file type you want to copy *.ini .
To not copy empty folder use additional |**\

Code: Select all

*.ini | **\
You will copy the complete hierarchy of folder and all the ini files.

If you want, you can delete all the empty folders using folder size or empty_check plugin.


--edited to reflect petermad best answer
User avatar
petermad
Power Member
Power Member
Posts: 16034
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: copy ini files with specific names

Post by *petermad »

nsp wrote:You will copy the complete hierarchy of folder and all the ini files.

If you want, you can delete all the empty folders using folder size or empty_check plugin.
You can also just add |**\ to the "Only files of this type" field in the Copy dialog to avoid empty folders from being copied - so the field should look like:

Code: Select all

*.ini |**\

Help wrote:F5: Copy
.
Copy dialog
.
In the field Only files of this type, you can define that only specific files should be copied.
.
Append |**\ to skip copying of empty folders.


totalcommanderuser wrote:only *.ini files that called "settings" from there
I dont understand what you exactly mean by that? - do you mean only files with the name settings.ini ? - if so, just use settings.ini in the "Only files of this type" field:

Code: Select all

settings.ini |**\
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply