Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - creating a new folder in multiple subfolders

Reply
 
Old 01-18-2008   #1 (permalink)
Miles


 
 

creating a new folder in multiple subfolders

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.

My System SpecsSystem Spec
Old 01-18-2008   #2 (permalink)
alexB


 
 

Re: creating a new folder in multiple subfolders

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" <Miles@xxxxxx> wrote in message
news:C37C2FEF-06DA-4C29-896B-0DD7D9811531@xxxxxx
Quote:

>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.
My System SpecsSystem Spec
Old 01-18-2008   #3 (permalink)
Miles


 
 

Re: creating a new folder in multiple subfolders

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:
Quote:

> 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" <Miles@xxxxxx> wrote in message
> news:C37C2FEF-06DA-4C29-896B-0DD7D9811531@xxxxxx
Quote:

> >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.
>
>
My System SpecsSystem Spec
Old 01-18-2008   #4 (permalink)
Synapse Syndrome


 
 

Re: creating a new folder in multiple subfolders

"Miles" <Miles@xxxxxx> wrote in message
news:C37C2FEF-06DA-4C29-896B-0DD7D9811531@xxxxxx
Quote:

>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.


My System SpecsSystem Spec
Old 01-18-2008   #5 (permalink)
alexB


 
 

Re: creating a new folder in multiple subfolders

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" <Miles@xxxxxx> wrote in message
news:06F004B7-EB98-4E2E-911E-F61E4E8C35A3@xxxxxx
Quote:

> 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:
>
Quote:

>> 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" <Miles@xxxxxx> wrote in message
>> news:C37C2FEF-06DA-4C29-896B-0DD7D9811531@xxxxxx
Quote:

>> >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.
>>
>>
My System SpecsSystem Spec
Old 01-18-2008   #6 (permalink)
the wharf rat


 
 

Re: creating a new folder in multiple subfolders



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"




My System SpecsSystem Spec
Old 01-18-2008   #7 (permalink)
Synapse Syndrome


 
 

Re: creating a new folder in multiple subfolders

"the wharf rat" <wrat@xxxxxx> wrote in message
news:fmqibm$fd3$1@xxxxxx
Quote:

>
>
> 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?
Quote:

> rem interesting things will happen if you try "do mkdir %x"
There is no 'do' command?

ss.


My System SpecsSystem Spec
Old 01-18-2008   #8 (permalink)
the wharf rat


 
 

Re: creating a new folder in multiple subfolders

In article <ugcwi1eWIHA.5208@xxxxxx>,
Synapse Syndrome <synapse@xxxxxx> wrote:
Quote:

>"the wharf rat" <wrat@xxxxxx> wrote in message
Quote:

>>
>> 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?



My System SpecsSystem Spec
Old 01-18-2008   #9 (permalink)
the wharf rat


 
 

Re: creating a new folder in multiple subfolders

In article <fmr6os$rri$1@xxxxxx>,
the wharf rat <wrat@xxxxxx> wrote:
Quote:

>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.

My System SpecsSystem Spec
Old 01-18-2008   #10 (permalink)
alexB


 
 

Re: creating a new folder in multiple subfolders

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" <wrat@xxxxxx> wrote in message
news:fmqibm$fd3$1@xxxxxx
Quote:

>
>
> 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"
>
>
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Clean out old files from multiple subfolders VB Script
Unzip a zip file which contains multiple subfolders using VBSCRIPT?! VB Script
SendTo Folder with Subfolders Vista General
Customize Windows Folder (and subfolders) Vista General
Customize Folder -> Apply to Subfolders Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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