Creating new folders in explorer

  • Thread starter Thread starter ben
  • Start date Start date
B

ben

I would like to know how to create a whole batch of
folders on a shared drive all at once. At the moment I
only know only how to create one at a time.
 
ben said:
I would like to know how to create a whole batch of
folders on a shared drive all at once. At the moment I
only know only how to create one at a time.

Batch files are your friend.

First, create a file containing the dir names, one on each line.
E.g., run this at a command prompt:

for /L %n in (1,1,9) do @echo d%l >>dirs.txt

This creates a file containing

d1
d2
d3
...
d9

in it.
Next, run this line at the command prompt:

for /F %f in (dirs.txt) do @md %f

For each line in dirs.txt, create a directory by that name.

C.f., mk:@MSITStore:C:\WINNT\Help\ntcmds.chm::/batch_cmds.htm
also accessible via Start-->Help, Index, batch commands,
overview.

HTH,
-Jeremy
 
Thanks Jeremy

I'm not much good at DOS. The path for our director is
g:\\1ersl then we have our folders. At the moment we are
11115 I need to create lots more in sequence.

So I know to go start/run then cmd. At the DOS prompt I
get c:\windows\desktop> where do I go from here?

Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top