I know if I write for e.g. folder1|folder2|folder3 into the New Folder dialog TC creates three folders named folder1, folder2 and folder3. That's great.
Is there a regexp for a range of naming them? So if I need 50 folders, can I just write folder{1-50} and TC would create them named folder1, folder2, etc to folder50, or something like that?
Thank you
How to create multiple folders at once? 1..50
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
No there isn't, and it cannot be added that easily because "folder{1-50}" is actually a valid folder name.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
PowerShell: create 50 folders or files at once
For such tasks have a button, opening PowerShell with current dir as path:
CMD: PowerShell -NoProfile -NoExit
PARAM:
START:
ICON: powershell.exe
TOOLTIP: Launch PS in current dir
Now go to your "main" folder,
execute that button to open PowerShell and type
1..50 | ForEach-Object{ New-Item -Path $_ -ItemType directory }
Or in short: 1..50|%{MD $_}
Result:
1
2
3
...
48
49
50
Or format to two digits and with Name "Test_":
1..50|%{ MD("Test_{0:D2}" -f $_) }
Result:
01
02
03
...
48
49
50
Or create hundred files, format to three digits:
1..100|%{New-Item ("Test_{0:D3}.txt" -f $_) -Itemtype file}
Result:
Test_001
Test_002
Test_003
...
Test_098
Test_099
Test_100
# # #
That feature is now built-in
Total Commander 9.10; 2017
Added:
Create directory (F7), create a range of numbered directories:
[C] placeholder takes same options as in multi-rename tool,
e.g. <1-20>[C10+5:3] create 20 folders, starts at 10, steps by 5, uses 3 digits width
010
015
020
025
...
e.g. <5-10>test[C] creates folders test05, test06, test07, test08, test09, test10.
The number of digits is determined by the highest number, but can be set via parameter, e.g. [C:2]
e.g. <1-50>Folder [C]-Test
Folder 1-Test
Folder 2-Test
...
Folder 12-Test
Folder 13-Test
---
Folder 24-Test
...
Folder 50-Test
e.g. <1-50>Folder [C:2]-Test
Folder 01-Test
Folder 02-Test
...
Folder 12-Test
Folder 13-Test
---
Folder 24-Test
...
Folder 50-Test
e.g. <1-50>Folder [C:3]-Test
Folder 001-Test
Folder 002-Test
...
Folder 012-Test
Folder 013-Test
---
Folder 024-Test
...
Folder 050-Test
. . .
- - -
Umschalt+F4 >>> Neue Datei erstellen.
Dort rechts auf den PlusMinus-Button klicken und Folgendes auswählen:
<1-10>[C]
oder auch
<1-10>[C]_Test.TxT
oder
<1-10>[C]te neue Testdatei.tXt
oder
<1-123>Neue Datei Nummer_[C:3].txt
CMD: PowerShell -NoProfile -NoExit
PARAM:
START:
ICON: powershell.exe
TOOLTIP: Launch PS in current dir
Now go to your "main" folder,
execute that button to open PowerShell and type
1..50 | ForEach-Object{ New-Item -Path $_ -ItemType directory }
Or in short: 1..50|%{MD $_}
Result:
1
2
3
...
48
49
50
Or format to two digits and with Name "Test_":
1..50|%{ MD("Test_{0:D2}" -f $_) }
Result:
01
02
03
...
48
49
50
Or create hundred files, format to three digits:
1..100|%{New-Item ("Test_{0:D3}.txt" -f $_) -Itemtype file}
Result:
Test_001
Test_002
Test_003
...
Test_098
Test_099
Test_100
# # #
That feature is now built-in
Total Commander 9.10; 2017
Added:
Create directory (F7), create a range of numbered directories:
[C] placeholder takes same options as in multi-rename tool,
e.g. <1-20>[C10+5:3] create 20 folders, starts at 10, steps by 5, uses 3 digits width
010
015
020
025
...
e.g. <5-10>test[C] creates folders test05, test06, test07, test08, test09, test10.
The number of digits is determined by the highest number, but can be set via parameter, e.g. [C:2]
e.g. <1-50>Folder [C]-Test
Folder 1-Test
Folder 2-Test
...
Folder 12-Test
Folder 13-Test
---
Folder 24-Test
...
Folder 50-Test
e.g. <1-50>Folder [C:2]-Test
Folder 01-Test
Folder 02-Test
...
Folder 12-Test
Folder 13-Test
---
Folder 24-Test
...
Folder 50-Test
e.g. <1-50>Folder [C:3]-Test
Folder 001-Test
Folder 002-Test
...
Folder 012-Test
Folder 013-Test
---
Folder 024-Test
...
Folder 050-Test
. . .
- - -
Umschalt+F4 >>> Neue Datei erstellen.
Dort rechts auf den PlusMinus-Button klicken und Folgendes auswählen:
<1-10>[C]
oder auch
<1-10>[C]_Test.TxT
oder
<1-10>[C]te neue Testdatei.tXt
oder
<1-123>Neue Datei Nummer_[C:3].txt
Re: How to create multiple folders at once? 1..50
I would like to know is there any plugin to TC which can create multiple folders at once? I want to copy the folder names (Mark>copy selected names) and then to create a new folder with the same subfolder structure.
There are also some other ways: https://www.youtube.com/watch?v=cFveHEr2C1s
There are also some other ways: https://www.youtube.com/watch?v=cFveHEr2C1s
Re: How to create multiple folders at once? 1..50
To re-create folders with subfolders structure select all desired folders on one side and press "F5" (Copy), type . (dot) on "Only files of this type" field and press "Enter". Folders with subfolders will be create on the other panel (no files copy).
To create plain structure, only one visible level use button on buttonbar - see full discussion for examples - viewtopic.php?t=48032
To create plain structure, only one visible level use button on buttonbar - see full discussion for examples - viewtopic.php?t=48032
Re: How to create multiple folders at once? 1..50
Thank you so much for the prompt reply! It works. 
