|
|
| Next: Scavenging |
| Author |
Message |
RFI.Kidney External

Since: Aug 27, 2006 Posts: 2
|
Posted: Sun Aug 27, 2006 8:36 am Post subject: Folder creation from excel or text file Archived from groups: microsoft>public>win2000>file_system (more info?) |
|
|
Hello all,
I have an excel sheet with about 900 entries.I need to create a folder
in explorer for each name on the excel.
as an example the entries run like this
smith, john
rogers, david
wells, alan
I am trying to automate creating a folder for each entry and the folder
name will be the name of the entry in the excel.
thanks for your help.
I saw the post below on a search and tried it but it did not work for
me.(maybe i did not understand the directions)
Am using win xp pro.
_________________________________
Bulk creation of new folders.
All 2 messages in topic - view as tree
From: Richard Wright - view profile
Date: Fri, Jan 25 2002 10:23 am
Email: "Richard Wright" <richard.wri....DeleteThis@donaldsons.co.uk>
Groups: microsoft.public.win2000.file_system
Not yet ratedRating:
show options
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse | Find messages by this author
I would like to know if there is a way to automate this,
I have about 1,500 folders to create, the names of which
are already listed in Excel. All the new folders will be
attached to the same parent folder at least!
If anyone can knows a quick way, this would be fantastic!
Reply Rate this post:
From: GZiv - view profile
Date: Sun, Jan 27 2002 5:15 pm
Email: "GZiv" <g....DeleteThis@hotmail.com>
Groups: microsoft.public.win2000.file_system
Not yet ratedRating:
show options
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse | Find messages by this author
How about writing a little script in Excel's VBA using the
FileSystemObject
to do that.? Should be no more than a few lines of code
do you have any experience in that?
also, you can, instead, do this:
(suppose the list of names is on the first column, and the name of the
first
folder you want to create is Jack):
Make the second column cell in the row read "md x:\users" & "Jack"
now make all the second row cells the same,
then save the sheet to a batch file (with a ".cmd" or ".bat" extension)
go to the d: drive (assuming this is where you need to create the
directories
and run it.
It's that simple.
"Richard Wright" <richard.wri....DeleteThis@donaldsons.co.uk> wrote in message |
|
| Back to top |
|
 |
RFI.Kidney External

Since: Aug 27, 2006 Posts: 2
|
Posted: Sun Aug 27, 2006 9:20 am Post subject: Re: Folder creation from excel or text file [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
Thanks Pegasus ! worked like a charm
Pegasus (MVP) wrote:
> You could do this:
> 1. Make sure all your entries are in column A of your spreadsheet.
> 2. Edit/copy column A
> 3. Click Start / Run / notepad c:\folders.txt {OK}
> 4. Click Edit / paste. You now have a text file with all the folder names
> inside.
> 5. Click Start / run / cmd {OK}
> 6. Type this test command:
> for /F "tokens=*" %* in (c:\folders.txt) do @echo md "D:\My Folders\%*"
> {Enter}
>
> If you're happy with the result, make it happen by typing this command:
> for /F "tokens=*" %* in (c:\folders.txt) do @md "D:\My Folders\%*"
> {Enter}
>
>
> <RFI.Kidney DeleteThis @gmail.com> wrote in message
> news:1156693014.948494.157110@h48g2000cwc.googlegroups.com...
> > Hello all,
> > I have an excel sheet with about 900 entries.I need to create a folder
> > in explorer for each name on the excel.
> >
> > as an example the entries run like this
> >
> >
> > smith, john
> > rogers, david
> > wells, alan
> >
> >
> > I am trying to automate creating a folder for each entry and the folder
> > name will be the name of the entry in the excel.
> > thanks for your help.
> > I saw the post below on a search and tried it but it did not work for
> > me.(maybe i did not understand the directions)
> > Am using win xp pro.
> >
> >
> > _________________________________
> >
> >
> > Bulk creation of new folders.
> > All 2 messages in topic - view as tree
> > From: Richard Wright - view profile
> > Date: Fri, Jan 25 2002 10:23 am
> > Email: "Richard Wright" <richard.wri... DeleteThis @donaldsons.co.uk>
> > Groups: microsoft.public.win2000.file_system
> > Not yet ratedRating:
> > show options
> > Reply | Reply to Author | Forward | Print | Individual Message | Show
> > original | Report Abuse | Find messages by this author
> >
> >
> > I would like to know if there is a way to automate this,
> > I have about 1,500 folders to create, the names of which
> > are already listed in Excel. All the new folders will be
> > attached to the same parent folder at least!
> > If anyone can knows a quick way, this would be fantastic!
> >
> > Reply Rate this post:
> >
> >
> > From: GZiv - view profile
> > Date: Sun, Jan 27 2002 5:15 pm
> > Email: "GZiv" <g... DeleteThis @hotmail.com>
> > Groups: microsoft.public.win2000.file_system
> > Not yet ratedRating:
> > show options
> > Reply | Reply to Author | Forward | Print | Individual Message | Show
> > original | Report Abuse | Find messages by this author
> >
> >
> > How about writing a little script in Excel's VBA using the
> > FileSystemObject
> > to do that.? Should be no more than a few lines of code
> > do you have any experience in that?
> >
> > also, you can, instead, do this:
> >
> >
> > (suppose the list of names is on the first column, and the name of the
> > first
> > folder you want to create is Jack):
> > Make the second column cell in the row read "md x:\users" & "Jack"
> > now make all the second row cells the same,
> > then save the sheet to a batch file (with a ".cmd" or ".bat" extension)
> >
> > go to the d: drive (assuming this is where you need to create the
> > directories
> > and run it.
> > It's that simple.
> >
> >
> >
> > "Richard Wright" <richard.wri... DeleteThis @donaldsons.co.uk> wrote in message
> > |
|
| Back to top |
|
 |
Dave Patrick External

Since: Oct 18, 2005 Posts: 3525
|
Posted: Sun Aug 27, 2006 9:50 am Post subject: Re: Folder creation from excel or text file [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
You might try some of these.
http://www.google.com/search?hl=en&q=create+folders+from+excel
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
<RFI.Kidney.DeleteThis@gmail.com> wrote:
| Hello all,
| I have an excel sheet with about 900 entries.I need to create a folder
| in explorer for each name on the excel.
|
| as an example the entries run like this
|
|
| smith, john
| rogers, david
| wells, alan
|
|
| I am trying to automate creating a folder for each entry and the folder
| name will be the name of the entry in the excel.
| thanks for your help.
| I saw the post below on a search and tried it but it did not work for
| me.(maybe i did not understand the directions)
| Am using win xp pro.
|
|
| _________________________________
|
|
| Bulk creation of new folders.
| All 2 messages in topic - view as tree
| From: Richard Wright - view profile
| Date: Fri, Jan 25 2002 10:23 am
| Email: "Richard Wright" <richard.wri....DeleteThis@donaldsons.co.uk>
| Groups: microsoft.public.win2000.file_system
| Not yet ratedRating:
| show options
| Reply | Reply to Author | Forward | Print | Individual Message | Show
| original | Report Abuse | Find messages by this author
|
|
| I would like to know if there is a way to automate this,
| I have about 1,500 folders to create, the names of which
| are already listed in Excel. All the new folders will be
| attached to the same parent folder at least!
| If anyone can knows a quick way, this would be fantastic!
|
| Reply Rate this post:
|
|
| From: GZiv - view profile
| Date: Sun, Jan 27 2002 5:15 pm
| Email: "GZiv" <g....DeleteThis@hotmail.com>
| Groups: microsoft.public.win2000.file_system
| Not yet ratedRating:
| show options
| Reply | Reply to Author | Forward | Print | Individual Message | Show
| original | Report Abuse | Find messages by this author
|
|
| How about writing a little script in Excel's VBA using the
| FileSystemObject
| to do that.? Should be no more than a few lines of code
| do you have any experience in that?
|
| also, you can, instead, do this:
|
|
| (suppose the list of names is on the first column, and the name of the
| first
| folder you want to create is Jack):
| Make the second column cell in the row read "md x:\users" & "Jack"
| now make all the second row cells the same,
| then save the sheet to a batch file (with a ".cmd" or ".bat" extension)
|
| go to the d: drive (assuming this is where you need to create the
| directories
| and run it.
| It's that simple.
|
|
|
| "Richard Wright" <richard.wri....DeleteThis@donaldsons.co.uk> wrote in message
| |
|
| Back to top |
|
 |
"Pegasus External

Since: Oct 14, 2005 Posts: 1845
|
Posted: Mon Aug 28, 2006 1:48 am Post subject: Re: Folder creation from excel or text file [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
You could do this:
1. Make sure all your entries are in column A of your spreadsheet.
2. Edit/copy column A
3. Click Start / Run / notepad c:\folders.txt {OK}
4. Click Edit / paste. You now have a text file with all the folder names
inside.
5. Click Start / run / cmd {OK}
6. Type this test command:
for /F "tokens=*" %* in (c:\folders.txt) do @echo md "D:\My Folders\%*"
{Enter}
If you're happy with the result, make it happen by typing this command:
for /F "tokens=*" %* in (c:\folders.txt) do @md "D:\My Folders\%*"
{Enter}
<RFI.Kidney.DeleteThis@gmail.com> wrote in message
news:1156693014.948494.157110@h48g2000cwc.googlegroups.com...
> Hello all,
> I have an excel sheet with about 900 entries.I need to create a folder
> in explorer for each name on the excel.
>
> as an example the entries run like this
>
>
> smith, john
> rogers, david
> wells, alan
>
>
> I am trying to automate creating a folder for each entry and the folder
> name will be the name of the entry in the excel.
> thanks for your help.
> I saw the post below on a search and tried it but it did not work for
> me.(maybe i did not understand the directions)
> Am using win xp pro.
>
>
> _________________________________
>
>
> Bulk creation of new folders.
> All 2 messages in topic - view as tree
> From: Richard Wright - view profile
> Date: Fri, Jan 25 2002 10:23 am
> Email: "Richard Wright" <richard.wri....DeleteThis@donaldsons.co.uk>
> Groups: microsoft.public.win2000.file_system
> Not yet ratedRating:
> show options
> Reply | Reply to Author | Forward | Print | Individual Message | Show
> original | Report Abuse | Find messages by this author
>
>
> I would like to know if there is a way to automate this,
> I have about 1,500 folders to create, the names of which
> are already listed in Excel. All the new folders will be
> attached to the same parent folder at least!
> If anyone can knows a quick way, this would be fantastic!
>
> Reply Rate this post:
>
>
> From: GZiv - view profile
> Date: Sun, Jan 27 2002 5:15 pm
> Email: "GZiv" <g....DeleteThis@hotmail.com>
> Groups: microsoft.public.win2000.file_system
> Not yet ratedRating:
> show options
> Reply | Reply to Author | Forward | Print | Individual Message | Show
> original | Report Abuse | Find messages by this author
>
>
> How about writing a little script in Excel's VBA using the
> FileSystemObject
> to do that.? Should be no more than a few lines of code
> do you have any experience in that?
>
> also, you can, instead, do this:
>
>
> (suppose the list of names is on the first column, and the name of the
> first
> folder you want to create is Jack):
> Make the second column cell in the row read "md x:\users" & "Jack"
> now make all the second row cells the same,
> then save the sheet to a batch file (with a ".cmd" or ".bat" extension)
>
> go to the d: drive (assuming this is where you need to create the
> directories
> and run it.
> It's that simple.
>
>
>
> "Richard Wright" <richard.wri....DeleteThis@donaldsons.co.uk> wrote in message
> |
|
| Back to top |
|
 |
MarsBlackmon

Joined: Oct 20, 2007 Posts: 1
|
Posted: Sat Oct 20, 2007 8:20 pm Post subject: [Login to view extended thread Info.] |
|
|
I am in exactly the same boat...around 2700 rows in a single excel column and need to make a folder for each row.
Tried this suggestion out, but I really need to get walked through this a lot more slowly as I know virtually nothing about navigating via command prompts. Would appreciate any help...
Original data is in Filemaker 8 format and I exported it into excel...just don't want to manually create and label 2700 folders.
Thanks |
|
| Back to top |
|
 |
|
|
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
| |
|
|