Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > creating a new folder in multiple subfolders

Reply
Thread Tools Display Modes

creating a new folder in multiple subfolders

 
 
Miles
Guest
Posts: n/a

 
      01-18-2008
I basically need to create a subfolder in around 450 subfolders, within 8
folders. Is there any way of doing this or will I have to do it manually?

Thanks.
 
Reply With Quote
 
 
 
 
alexB
Guest
Posts: n/a

 
      01-18-2008
The answer is yes, you can create a simple batch file that will do a simple
looping and keep creating as many folders as you need. You will have to use
DOS mkdir, cd, cd.. and some other commands. It is programming of sorts,
albeit simple. It does require some debugging. You may find extensive
resources on the web. Just google for batch files.

"Miles" <> wrote in message
news:C37C2FEF-06DA-4C29-896B-...
>I basically need to create a subfolder in around 450 subfolders, within 8
> folders. Is there any way of doing this or will I have to do it manually?
>
> Thanks.


 
Reply With Quote
 
Miles
Guest
Posts: n/a

 
      01-18-2008
I've got it sorted now, thanks for your help.
In the end I did a dir c:\***\*** > test.txt to get the list, took out the
rubbish and based my batch file around that.

Thanks again

"alexB" wrote:

> The answer is yes, you can create a simple batch file that will do a simple
> looping and keep creating as many folders as you need. You will have to use
> DOS mkdir, cd, cd.. and some other commands. It is programming of sorts,
> albeit simple. It does require some debugging. You may find extensive
> resources on the web. Just google for batch files.
>
> "Miles" <> wrote in message
> news:C37C2FEF-06DA-4C29-896B-...
> >I basically need to create a subfolder in around 450 subfolders, within 8
> > folders. Is there any way of doing this or will I have to do it manually?
> >
> > Thanks.

>
>

 
Reply With Quote
 
Synapse Syndrome
Guest
Posts: n/a

 
      01-18-2008
"Miles" <> wrote in message
news:C37C2FEF-06DA-4C29-896B-...
>I basically need to create a subfolder in around 450 subfolders, within 8
> folders. Is there any way of doing this or will I have to do it manually?



It should be easy to make a text file, with all the paths and folder names
that you want. Then just use that text file with this:
http://www.sobolsoft.com/createfoldertext/

ss.


 
Reply With Quote
 
alexB
Guest
Posts: n/a

 
      01-18-2008
I am happy you did it. I also get angry when screwed up synaptic
transmissions prowl this forum to prey on unsophisticated users to make a
few bucks selling their sh*t. They use every chance, no shame displayed.

You did it in record time. It would have taken perhaps 5 times as long for
me. I do not do batches very often. Every time I have to refresh basics.

"Miles" <> wrote in message
news:06F004B7-EB98-4E2E-911E-...
> I've got it sorted now, thanks for your help.
> In the end I did a dir c:\***\*** > test.txt to get the list, took out the
> rubbish and based my batch file around that.
>
> Thanks again
>
> "alexB" wrote:
>
>> The answer is yes, you can create a simple batch file that will do a
>> simple
>> looping and keep creating as many folders as you need. You will have to
>> use
>> DOS mkdir, cd, cd.. and some other commands. It is programming of sorts,
>> albeit simple. It does require some debugging. You may find extensive
>> resources on the web. Just google for batch files.
>>
>> "Miles" <> wrote in message
>> news:C37C2FEF-06DA-4C29-896B-...
>> >I basically need to create a subfolder in around 450 subfolders, within
>> >8
>> > folders. Is there any way of doing this or will I have to do it
>> > manually?
>> >
>> > Thanks.

>>
>>


 
Reply With Quote
 
the wharf rat
Guest
Posts: n/a

 
      01-18-2008


Gee, doesnt' anyone do dos programming any more? All you do is


for /r "c:\thedirectory" %x in (newdirectory) do
echo "mkdir %x">>makedirs.bat

call makedirs.bat

rem interesting things will happen if you try "do mkdir %x"




 
Reply With Quote
 
Synapse Syndrome
Guest
Posts: n/a

 
      01-18-2008
"the wharf rat" <> wrote in message
news:fmqibm$fd3$...
>
>
> Gee, doesnt' anyone do dos programming any more? All you do is
>
>
> for /r "c:\thedirectory" %x in (newdirectory) do
> echo "mkdir %x">>makedirs.bat
>
> call makedirs.bat
>
> rem interesting things will happen if you try "do mkdir %x"



I cannot visualise how the OP wants the folders. What do you mean by the
last bit?

> rem interesting things will happen if you try "do mkdir %x"


There is no 'do' command?

ss.


 
Reply With Quote
 
the wharf rat
Guest
Posts: n/a

 
      01-18-2008
In article <>,
Synapse Syndrome <> wrote:
>"the wharf rat" <> wrote in message
>>
>> rem interesting things will happen if you try "do mkdir %x"

>
>What do you mean by the last bit?
>


If you do something like find . -type d -exec mkdir {}/foo \;
on unix you get 1 foo directory per each existing directory because
unix commands read the whole directory then iterate over the members.
But if you do something like for /r %x in (blah) do mkdir %x you get
..\blah\blah\blah\blah ad infinitum until the path gets too long and
crashes the script. That's because the dos for /r reads each directory
entry, performs the operation and then moves to the next, eventually getting
to the last one added which is \blah... See what happens?



 
Reply With Quote
 
the wharf rat
Guest
Posts: n/a

 
      01-18-2008
In article <fmr6os$rri$>,
the wharf rat <> wrote:
>unix commands read the whole directory then iterate over the members.


BTW, that's not defined as required anywhere, it's simply
historical behavior :-) so one day it'll bite someone in the butt too.

 
Reply With Quote
 
alexB
Guest
Posts: n/a

 
      01-18-2008
Yep, this is the sad part, shall I say a downside or untoward side effect of
progress. People forget simple, useful things when more advanced techniques
come along. Your doc does not take you pulse anymore, all he does is to look
into his monitor, not into your face. Docs of yesterday could get quite a
few good tips from talking to their patients.


"the wharf rat" <> wrote in message
news:fmqibm$fd3$...
>
>
> Gee, doesnt' anyone do dos programming any more? All you do is
>
>
> for /r "c:\thedirectory" %x in (newdirectory) do
> echo "mkdir %x">>makedirs.bat
>
> call makedirs.bat
>
> rem interesting things will happen if you try "do mkdir %x"
>
>
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When I share a desktop folder, C:\Users and ALL subfolders are sha Darryl Gittins Windows Vista Networking 3 04-25-2008 09:41 PM
Apply custom folder details to all subfolders WesW69 Windows Vista General Discussion 1 02-03-2008 09:43 AM
Customize Windows Folder (and subfolders) John Windows Vista General Discussion 1 01-20-2008 08:47 PM
creating multiple LAN connections jbaum75 Windows Vista Networking 0 09-19-2007 07:14 PM
Customize Folder -> Apply to Subfolders Danny L Windows Vista General Discussion 0 02-17-2007 09:03 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59