creating a new folder in multiple subfolders  
Author Message
mwam423





PostPosted: Fri Jan 18 05:17:04 PST 2008 Top

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

Windows Vista29  
 
 
alexB





PostPosted: Fri Jan 18 05:17:04 PST 2008 Top

Windows Vista >> 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" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
>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.

 
 
Miles





PostPosted: Fri Jan 18 05:38:00 PST 2008 Top

Windows Vista >> 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:

> 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" <EMail@HideDomain.com> wrote in message
> news:EMail@HideDomain.com...
> >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.
>
>
 
 
Synapse





PostPosted: Fri Jan 18 05:39:25 PST 2008 Top

Windows Vista >> creating a new folder in multiple subfolders "Miles" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
>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.


 
 
alexB





PostPosted: Fri Jan 18 06:09:20 PST 2008 Top

Windows Vista >> 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" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> 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" <EMail@HideDomain.com> wrote in message
>> news:EMail@HideDomain.com...
>> >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.
>>
>>

 
 
wrat





PostPosted: Fri Jan 18 07:58:46 PST 2008 Top

Windows Vista >> 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"




 
 
Synapse





PostPosted: Fri Jan 18 08:15:45 PST 2008 Top

Windows Vista >> creating a new folder in multiple subfolders "the wharf rat" <EMail@HideDomain.com> wrote in message
news:fmqibm$fd3$EMail@HideDomain.com...
>
>
> 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.


 
 
wrat





PostPosted: Fri Jan 18 13:47:08 PST 2008 Top

Windows Vista >> creating a new folder in multiple subfolders In article <EMail@HideDomain.com>,
Synapse Syndrome <EMail@HideDomain.com> wrote:
>"the wharf rat" <EMail@HideDomain.com> 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?



 
 
wrat





PostPosted: Fri Jan 18 13:52:48 PST 2008 Top

Windows Vista >> creating a new folder in multiple subfolders In article <fmr6os$rri$EMail@HideDomain.com>,
the wharf rat <EMail@HideDomain.com> 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.

 
 
alexB





PostPosted: Fri Jan 18 13:56:20 PST 2008 Top

Windows Vista >> 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" <EMail@HideDomain.com> wrote in message
news:fmqibm$fd3$EMail@HideDomain.com...
>
>
> 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"
>
>
>
>

 
 
alexB





PostPosted: Fri Jan 18 13:58:40 PST 2008 Top

Windows Vista >> creating a new folder in multiple subfolders
>I cannot visualize how the OP wants the folders.

Of course you cannot. The program you were trying to sell visualizes
greenbacks only.

"Synapse Syndrome" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> "the wharf rat" <EMail@HideDomain.com> wrote in message
> news:fmqibm$fd3$EMail@HideDomain.com...
>>
>>
>> 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.
>
>