Google Answers Logo
View Question
 
Q: New folder/directory creation, via free software or free script ( No Answer,   0 Comments )
Question  
Subject: New folder/directory creation, via free software or free script
Category: Computers > Programming
Asked by: rayzun-ga
List Price: $5.00
Posted: 13 May 2003 18:45 PDT
Expires: 19 May 2003 11:41 PDT
Question ID: 203400
I need to create new folders, using the names I have on a list, each
name is on a seperate line and I have about 5000.

After the folders are created, I will upload the new folders to my
website using ftp program.

Request for Question Clarification by joey-ga on 13 May 2003 19:00 PDT
Do you happen to have a copy of PERL on your machine?

Request for Question Clarification by answerguru-ga on 13 May 2003 19:09 PDT
Hi rayzun-ga,

If you can post your list of folders and any directory structure that
is required for them, I will generate them for you and provide them in
a zip file which you can unzip such that the structure is maintained.

answerguru-ga

Request for Question Clarification by elmarto-ga on 14 May 2003 10:38 PDT
Hello rayzun,
The following is a far from professional way to do it, but it has
worked for me in the past. You will need Microsoft Word, and your list
should be in unformatted text (.txt)

1) Load your text file into Word. You will have your list, each line
ending with the paragraph mark (the one that looks like a flipped P).

2) Now, go to Edit, then Replace.

3) In the "Search for" box, enter ^p (the ^p means "paragraph mark")

4) In the "Replace with" box, enter ^pmd<space> (of course, don't
actually write <space>, just hit your spacebar once)

5) Finally, Replace All. The effect of these steps is that now each
line, instead of only containing the names of the directories, has the
word "md" before each one. Note that you will have to write md
yourself for the first line. The command "md" in DOS means "make
directory". I think you get the idea...

6) Finally, save it; and then rename it from .txt to .bat (.bat are
files that contain a sequence of commands; in this case, creating
several directories)

7) Move this file to wherever you want to create your directories,
then double click on it, and you will have your directory structure
done.

I'm posting this as a clarification request rather than as an answer
because maybe you were looking for a less complicated way to do it or
you don't have Microsoft Word. If you're satisfied with this method,
please let me know so I can repost it as the answer, and collect the
fee :-)


Best wishes!
elmarto

Clarification of Question by rayzun-ga on 14 May 2003 14:01 PDT
I have no PERL.
I only have text list.

example:
Google
Answers
Googlism
etc...

5000+ words each on seperate line. (txt file)

I do not have word on my machine, and I dont have an extra copy of
windows for backup. However, I can travel to the city, to use Internet
cafe.

Please note.

Once I have these words transformed, into seperate folders. 
I must insert .html files in each ( 2 - 5 html files). 
The files are templates, so the same files can be copied into each
folder.

Im looking for a program to do this, or instructions.

If you can only provide the instruction for the new request I made, I
will repost the question seperately, because I think elmarto-ga idea
will work for part of the solution.

Request for Question Clarification by elmarto-ga on 14 May 2003 17:45 PDT
Hello again,
If you have access to Microsoft Word, you can use a similar procedure
as the one described for your previous question in order to copy the
same files to every directory.

Say you will create your whole structure of folers in the folder
C:\Structure. What you could do is run in this folder the .bat file
you created before. This creates all the directories you need. Now,
put the html files you want copied to each one in C:\Structure.
Finally, you need to create a .bat file that copies files to each
folder. You do this following the same procedure as before except that
you put (in the original txt file):

Search for: ^p
Replace with: ^pcopy *.html C:\Structure\

This should turn:
Google
Googlism

into:
copy *.html C:\Structure\Google
copy *.html C:\Structure\Googlism

Finally, rename the file to .bat, and run it in the C:\Structure
folder. This should work just fine.

Please tell me if this worked alright for you, so I can post it as an
answer.

Best wishes!
elmarto

Clarification of Question by rayzun-ga on 15 May 2003 14:32 PDT
Well, elmarto

My PC has no MS Word, the Internet cafe PC's are not able to do .bat
files - plus they use a program called 'Easy word' which does not
recognize ^pmd .

So Your answer works. 

But, Im still researching it myself.

**** 
When MS Word tries to replace '^p' with 'md ' to the begining of the
words in my words list, is it also possible to add characters to the
endings of the words??
Not for folder creation but rather to create the <a href> tags
themselves.

thankyou for your help
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy