Defining Subfolders in Windows Explorer

All of us accessing this forum are using a computer, if you've got a problem, have or need information, then post here.


Reply
 
LinkBack Thread Tools Display Modes
Old 22-07-2009   #1
Archived Member
 
Join Date: 13-08-2007
Location: Middle East - Israel
Posts: 3774
Thanks: 192
Thanked 459 Times in 356 Posts
Defining Subfolders in Windows Explorer

Just wondering if there is a simple way to define new subfolders in Windows Explorer, instead of going through the laborious
File > New > Folder
and then typing the subfolder name in the box.

An example:
Let's say I want to define subfolders for my favourite fruits, so I have a list like this:

Code:
Fruits

  Orange
  Apple
  Peaches
  Grapes
  Pear
  Banana
I want to use the already typed list above and use it to create the respective subfolders on my PC, in order to save me time and many clicks with the mouse.
This is just a simple list, but imagine it is for a much larger list in the hundreds.

Any ideas? Thanks.
O/S Windows XP Pro
HB13DISH is offline   Reply With Quote
Old 22-07-2009   #2
Amo Amas Amant Admin
 
Topper's Avatar
 
Join Date: 18-11-2004
Location: Blackburn NW England (Siberia)
Posts: 11287
Thanks: 24
Thanked 506 Times in 465 Posts

My System: IDD CI24 ECONO MM Penta 1.20 Galaxy II 1.2Mtr Polar MTG yes it has been on the arc for 21 years and is still driven by a modified wiper motor from a Ford Anglia. It's like me sometimes groans but always performs


Saved us from the black plague of ignoratio elenchi, he awaits a special badge with jugs
Well

Mmm tricky did initially think about old reliable, writing a batch file (anything.bat) and running in a dos window, however by the time it was written and tested I suspect it may have been possible to manually create them. On the other hand you have programming experience IIRC could it not be done with VB and a data container in which you could copy and paste your list and program just says goto next record, like using a spreadsheet as a database for a mailmerge. The only tricky bit would be creating the code for the action but again i think dos cammands will work

War does not determine who is right, it determines who is left!

Formerly toppervte33h
whose six pack has turned into a keg

Help support this web site by making a donation
Or use other options to help support Sats UK
Show Your Support
by clicking the button

Thank you.
Freddie Flintoff is back



Topper is offline   Reply With Quote
The Following User Says Thank You to Topper For This Useful Post:
HB13DISH (22-07-2009)
Old 22-07-2009   #3
Super Moderator
 
mhku's Avatar
 
Join Date: 08-03-2005
Location: J6 M5
Posts: 4541
Thanks: 11
Thanked 180 Times in 169 Posts
Blog Entries: 1

My System: DM7020S ~ DM500s ~ sg2100 ~ Gemini


If he were not a wizard, from head down to the root, you would have got to worry-your DB only boots

START > RUN > cmd

this will get the command prompt up

cd \

to get to the root folder. Then do a cd to the folder to create the subfolders in e.g.

cd c:\temp

mkdir fruits

cd fruits

mkdir Orange
mkdir Apple
mkdir Peaches
mkdir Grapes
mkdir Pear
mkdir Banana



I don't capitalise folder names but that's just me.

A quick and dirty method. Write a batch if you want to create lots of folders.


You don't stop playing because you get old, you get old because you stop playing. Regras
Before posting in the Dreambox section please ensure you've read The Guide


Information is for educational purposes only

mhku is online now   Reply With Quote
The Following User Says Thank You to mhku For This Useful Post:
HB13DISH (22-07-2009)
Old 22-07-2009   #4
Archived Member
 
Join Date: 13-08-2007
Location: Middle East - Israel
Posts: 3774
Thanks: 192
Thanked 459 Times in 356 Posts

Thanks Topper for the suggestion.
Good old DOS might give me a solution, but this is 2009 and this is a problem that I expect Windows programmers to solve for all their customers. Perhaps in Vista or latest Windows 7, if not in my O/S XP Pro.
Let's hope there is a simple solution for this.
HB13DISH is offline   Reply With Quote
Old 22-07-2009   #5
Amo Amas Amant Admin
 
Topper's Avatar
 
Join Date: 18-11-2004
Location: Blackburn NW England (Siberia)
Posts: 11287
Thanks: 24
Thanked 506 Times in 465 Posts

My System: IDD CI24 ECONO MM Penta 1.20 Galaxy II 1.2Mtr Polar MTG yes it has been on the arc for 21 years and is still driven by a modified wiper motor from a Ford Anglia. It's like me sometimes groans but always performs


Saved us from the black plague of ignoratio elenchi, he awaits a special badge with jugs
Yes

Of course mhku is quite correct with his dirty method which could be shortened by using 'md' instead of 'mkdir'

War does not determine who is right, it determines who is left!

Formerly toppervte33h
whose six pack has turned into a keg

Help support this web site by making a donation
Or use other options to help support Sats UK
Show Your Support
by clicking the button

Thank you.
Freddie Flintoff is back



Topper is offline   Reply With Quote
Old 22-07-2009   #6
Archived Member
 
Join Date: 13-08-2007
Location: Middle East - Israel
Posts: 3774
Thanks: 192
Thanked 459 Times in 356 Posts

Originally Posted by mhku View Post
START > RUN > cmd

this will get the command prompt up

cd \

to get to the root folder. Then do a cd to the folder to create the subfolders in e.g.

cd c:\temp

mkdir fruits

cd fruits

mkdir Orange
mkdir Apple
mkdir Peaches
mkdir Grapes
mkdir Pear
mkdir Banana



I don't capitalise folder names but that's just me.

A quick and dirty method. Write a batch if you want to create lots of folders.
Thanks mhku. Good idea

This can save me the initial setting up of the main folder, but it is the

mkdir Orange
mkdir Apple
mkdir Peaches
mkdir Grapes
mkdir Pear
mkdir Banana

that I am not happy with, unless you mean to make a batch file with all the subfolders, instead of one by one.

Edit: Sorry. You did mention the batch file creation. just did't read it at first.

Last edited by HB13DISH; 22-07-2009 at 10:36 AM.
HB13DISH is offline   Reply With Quote
Old 22-07-2009   #7
Specialist Contributor
 
compufunk's Avatar
 
Join Date: 07-05-2008
Location: NW, Ireland
Posts: 1398
Thanks: 126
Thanked 231 Times in 198 Posts

My System: DM 600-S, AB IPBox 9000HD, Moteck SG2100, Fracarro Penta 85 dish, + some puters

Do you actually have a list of folders you want to create, or are you just asking?

If you have a list, it would be quite easy to write a quick batch file using something like Notepad++. You could run a find replace in the list which would insert "mkdir " before each name giving you the makings of a batch file.
compufunk is offline   Reply With Quote
Old 22-07-2009   #8
Archived Member
 
Join Date: 13-08-2007
Location: Middle East - Israel
Posts: 3774
Thanks: 192
Thanked 459 Times in 356 Posts

Originally Posted by compufunk View Post
Do you actually have a list of folders you want to create, or are you just asking?

If you have a list, it would be quite easy to write a quick batch file using something like Notepad++. You could run a find replace in the list which would insert "mkdir " before each name giving you the makings of a batch file.
Yes. I have a list now.
I run into the same problem now and then, and I have always done it the hard way, but this time I would like to do it in a more subtle way.
The DOS batch file should work, but I am hoping for a Windows based solution.
HB13DISH is offline   Reply With Quote
Old 22-07-2009   #9
Specialist Contributor
 
compufunk's Avatar
 
Join Date: 07-05-2008
Location: NW, Ireland
Posts: 1398
Thanks: 126
Thanked 231 Times in 198 Posts

My System: DM 600-S, AB IPBox 9000HD, Moteck SG2100, Fracarro Penta 85 dish, + some puters

Come to think of it, you don't even need to create a batch file.

Code:
mkdir Apple Peaches Grapes Pear Banana
or
Code:
md Apple Peaches Grapes Pear Banana
Will create all the folders in one go. Just paste your list into the command console.

Thats pretty simple (no GUI though)
compufunk is offline   Reply With Quote
Old 22-07-2009   #10
Archived Member
 
Join Date: 13-08-2007
Location: Middle East - Israel
Posts: 3774
Thanks: 192
Thanked 459 Times in 356 Posts

Originally Posted by compufunk View Post
Come to think of it, you don't even need to create a batch file.

Code:
mkdir Apple Peaches Grapes Pear Banana
or
Code:
md Apple Peaches Grapes Pear Banana
Will create all the folders in one go. Just paste your list into the command console.

Thats pretty simple (no GUI though)
Thanks compufunk.
This is clever, but the trouble with DOS is that if a subfolder is built of two words, for example Red Melon, and I use your idea, then I would be creating two different subfolders:
Red
Melon
or change it to Red_Melon, which I dislike.
HB13DISH is offline   Reply With Quote
Old 22-07-2009   #11
Specialist Contributor
 
compufunk's Avatar
 
Join Date: 07-05-2008
Location: NW, Ireland
Posts: 1398
Thanks: 126
Thanked 231 Times in 198 Posts

My System: DM 600-S, AB IPBox 9000HD, Moteck SG2100, Fracarro Penta 85 dish, + some puters

Or use quotes....

Code:
md Apple "Red Melon" .......
compufunk is offline   Reply With Quote
The Following User Says Thank You to compufunk For This Useful Post:
HB13DISH (22-07-2009)
Old 22-07-2009   #12
Archived Member
 
Join Date: 13-08-2007
Location: Middle East - Israel
Posts: 3774
Thanks: 192
Thanked 459 Times in 356 Posts

Thanks guys for your help.
Just done a small batch of about 50 subfolders and it worked like a charm.
The trick was to get a text file with all the " at the beginning and the end, so I used my favourite text editor TextPad in block mode, added the " when it was aligned left to each subfolder, then changed the alignment to right and pasted all the " into the end, then switched back to left alignment and put a space between each subfolder name and the next.
Ended up with a long line of text which I pasted into the cmd, with md at the beginning.
Quite happy with this solution.
HB13DISH is offline   Reply With Quote
Old 22-07-2009   #13
Amo Amas Amant Admin
 
Topper's Avatar
 
Join Date: 18-11-2004
Location: Blackburn NW England (Siberia)
Posts: 11287
Thanks: 24
Thanked 506 Times in 465 Posts

My System: IDD CI24 ECONO MM Penta 1.20 Galaxy II 1.2Mtr Polar MTG yes it has been on the arc for 21 years and is still driven by a modified wiper motor from a Ford Anglia. It's like me sometimes groans but always performs


Saved us from the black plague of ignoratio elenchi, he awaits a special badge with jugs
Ok

Glad you got sorted to your satisfaction

War does not determine who is right, it determines who is left!

Formerly toppervte33h
whose six pack has turned into a keg

Help support this web site by making a donation
Or use other options to help support Sats UK
Show Your Support
by clicking the button

Thank you.
Freddie Flintoff is back



Topper is offline   Reply With Quote
Old 22-07-2009   #14
Super Moderator
 
mhku's Avatar
 
Join Date: 08-03-2005
Location: J6 M5
Posts: 4541
Thanks: 11
Thanked 180 Times in 169 Posts
Blog Entries: 1

My System: DM7020S ~ DM500s ~ sg2100 ~ Gemini


If he were not a wizard, from head down to the root, you would have got to worry-your DB only boots

A Windows way, rather than a DOS batch file, would have been to write a .vbs file. I've used DOS batch files and .vbs files to run automated tasks using Task Scheduler and SQL Agent.

computerperformance.co.uk/vbscript/vbscript_folder_create.htm

You could get it to read the folder names from a text file.

Homework?



You don't stop playing because you get old, you get old because you stop playing. Regras
Before posting in the Dreambox section please ensure you've read The Guide


Information is for educational purposes only

mhku is online now   Reply With Quote
Old 23-07-2009   #15
Archived Member
 
Join Date: 13-08-2007
Location: Middle East - Israel
Posts: 3774
Thanks: 192
Thanked 459 Times in 356 Posts

Thanks mhku for the suggestion.
Would be nice to do some homework. Maybe in winter when the brain isn't boiling so much like these days here.
HB13DISH is offline   Reply With Quote
Old 23-07-2009   #16
Specialist Contributor
 
BombedOne's Avatar
 
Join Date: 09-09-2008
Location: Republic of Georgia
Posts: 913
Thanks: 14
Thanked 258 Times in 199 Posts

My System: Covering 30W-105.5E range, two motors, C and Ku band. Various receivers/cards/cams/etc.

hm,

is MD command removed from windows already?

Code:
MKDIR [drive:]path
MD [drive:]path

If Command Extensions are enabled MKDIR changes as follows:

MKDIR creates any intermediate directories in the path, if needed.
For example, assume \a does not exist then:

    mkdir \a\b\c\d

is the same as:

    mkdir \a
    chdir \a
    mkdir b
    chdir b
    mkdir c
    chdir c
    mkdir d

which is what you would have to type if extensions were disabled.
BombedOne is online now   Reply With Quote
Old 23-07-2009   #17
Amo Amas Amant Admin
 
Topper's Avatar
 
Join Date: 18-11-2004
Location: Blackburn NW England (Siberia)
Posts: 11287
Thanks: 24
Thanked 506 Times in 465 Posts

My System: IDD CI24 ECONO MM Penta 1.20 Galaxy II 1.2Mtr Polar MTG yes it has been on the arc for 21 years and is still driven by a modified wiper motor from a Ford Anglia. It's like me sometimes groans but always performs


Saved us from the black plague of ignoratio elenchi, he awaits a special badge with jugs

Originally Posted by BombedOne View Post
hm,

is MD command removed from windows already?

No it is still there as I mentioned in post 5, indeed I did test it on my XP Pro at the time otherwise would not have posted it. I no longer run Vista so could not test that

War does not determine who is right, it determines who is left!

Formerly toppervte33h
whose six pack has turned into a keg

Help support this web site by making a donation
Or use other options to help support Sats UK
Show Your Support
by clicking the button

Thank you.
Freddie Flintoff is back



Topper is offline   Reply With Quote
Reply

Bookmarks

Tags
defining, explorer, subfolders, windows


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off







All times are GMT +1. The time now is 08:19 PM.


All views and information expressed in users' communications and profiles represent the opinions of the users concerned and do not represent the views of Satellites.co.uk. All images and news content are believed to be in the public domain, except where otherwise stated. Forum software by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Content Relevant URLs by vBSEO 3.3.1