how can i create multiple directories?

English support forum

Moderators: sheep, Hacker, Stefan2, white

User avatar
Ovg
Power Member
Power Member
Posts: 618
Joined: 2014-01-06, 16:26 UTC
Location: MOW

Post by Ovg »

2xtrips

For Windows 7

Open any text editor, type 2 next strings

Code: Select all

@echo off
forfiles /P %1 /c "cmd /c if @isdir==FALSE cmd /c md @fname&&cmd/c move @file @fname"
save file as Move_Files.cmd

Make button on button bar: (you can copy text below and paste it into button bar)

Code: Select all

[b]TOTALCMD#BAR#DATA
Path_to_Move_Files.cmd\Move_Files.cmd
%P%N
TC_HOME_DIR\wciconex.dll,59
Move_Files

1
-1
Change all path and icon to your own
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.5 RC1 x64, Windows 7 SP1 x64

User avatar
Stefan2
Power Member
Power Member
Posts: 2718
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by Stefan2 »

 

Code: Select all

forfiles /c "cmd /c if @isdir==FALSE md @fname && move @file @fname"

Cool command, Ovg.





 

User avatar
Ovg
Power Member
Power Member
Posts: 618
Joined: 2014-01-06, 16:26 UTC
Location: MOW

Post by Ovg »

2Stefan2

Thanks you, SS64.com very interesting site :mrgreen:

http://ghisler.ch/board/viewtopic.php?p=305026#305026
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.5 RC1 x64, Windows 7 SP1 x64

onRock
Junior Member
Junior Member
Posts: 2
Joined: 2019-08-13, 08:29 UTC

Re: how can i create multiple directories?

Post by onRock »

Press F7 then:
Directory01\..\Directory02\..\Directory03\..\Directory04\..\Directory05\..\Directory06\..\Directory07

User avatar
norfie²
Power Member
Power Member
Posts: 844
Joined: 2006-02-10, 07:27 UTC

Re: how can i create multiple directories?

Post by norfie² »

2onRock
A simple way is available now. Press F7 and the +--Button on the right side and choose a proper mask.
"War is evil, in so far as it makes more bad people than it takes away."
Immanuel Kant in "Perpetual Peace"

Post Reply