Create Dirs recursively?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
havanna
Member
Member
Posts: 163
Joined: 2003-02-27, 08:06 UTC
Location: Baden/Württemberg

Create Dirs recursively?

Post by *havanna »

I just noticed something funny (by mistake):
Trying to make a new dir by F7 and typing "this/that/another" creates a directoy "another" inside a directory "that" inside a directory "this".

Never knew this worked. Just out of curiousity: ist this documented somewhere?
Tanstaafl
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

From history.txt:
06.07.04 Added: Create multiple dirs (with F7) with syntax dir1|dir2|dir3 or c:\dir1|c:\dir2|c:\dir3 or a mix of both
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
havanna
Member
Member
Posts: 163
Joined: 2003-02-27, 08:06 UTC
Location: Baden/Württemberg

Post by *havanna »

Thanks, I had missed this one as well, but note the slashes:

entering a line like "one/two/three/four" will create nested dirs like this screenshot Image: http://theatermenschen.de/s.gif. It alo works in combination with the pipe. you can build a complex structure with one line.
Tanstaafl
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

Look in the help file:

F7: Create directory

This command creates a new subdirectory in the source directory. After pressing F7, simply type the desired name for the directory. You can now also create several subdirectories in one operation. Just separate the subdrectories with a backslash, e.g. directory1\directory2\directory3. Furthermore, you can create multiple subdirs in the same (or different) dirs. The syntax to use is:
dir1|dir2|dir3 or c:\dir1|c:\dir2|c:\dir3

If the source directory shows the contents of an archive, this function is unavailable.
User avatar
havanna
Member
Member
Posts: 163
Joined: 2003-02-27, 08:06 UTC
Location: Baden/Württemberg

Post by *havanna »

Wow so much for my intelligence :-( - I had a look at Help but just wan't careful enough

sorry for the bother
Tanstaafl
Post Reply