Page 1 of 1

Suggestion: "Multi-create Directories" function

Posted: 2009-06-17, 15:47 UTC
by -stefan-
Hello all,

I'm new to this forum, but not new to Total Commander. :)

Wanted to hear some comments about a suggestion I have regarding the possibility to easily create multiple directories.

Example:

A user wants to create several individual directories, that shares the same name, only differentiated by numbers.

I.e...

<directoryname>01
<directoryname>02
<directoryname>03
etc...

I believe such a function could actually be useful.

Posted: 2009-06-17, 16:04 UTC
by fenix_productions
2-stefan-
It is already possible to create multiple directories (just separate their names using pipe | symbol) but parameters handling could be even better.

Maybe some external tool can do it?

Support++

Posted: 2009-06-18, 03:31 UTC
by MVV
This feature may be easilly realised with external tool which may be run from TC toolbar or menu. I suggest to search for such tool.

Posted: 2009-06-22, 22:32 UTC
by StatusQuo
2-stefan-
This batch solution looks promising: http://ghisler.ch/board/viewtopic.php?p=20486#20486
A little update to support spaces in the dir names:

Code: Select all

@echo off
:: Help
:: TC_MakeMultipleDirs.cmd <target dir> <name> <start_num> <end_num>

for /L %%N in (%3,1,%4) do md "%~1\%~2-%%N" 
Save as TC_MakeMultipleDirs.cmd and define a button etc. like this, creating dirs in current directory:

Code: Select all

Command   : %comspec% /c TC_MakeMultipleDirs.cmd
Parameters: ? . "dirname" 01 10
Works quite well here. I just can't find a solution for leading zeros right now.

Posted: 2009-06-23, 06:39 UTC
by Vochomurka