Defining Subfolders in Windows ExplorerAll of us accessing this forum are using a computer, if you've got a problem, have or need information, then post here. | |
![]() |
| | LinkBack | Thread Tools | Display Modes |
![]() | ![]() |
| |||||||
Defining Subfolders in Windows ExplorerAll of us accessing this forum are using a computer, if you've got a problem, have or need information, then post here. | |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| Archived Member Join Date: 13-08-2007 Location: Middle East - Israel
Posts: 3774
Thanks: 192
Thanked 459 Times in 356 Posts
|
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 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 | ||
| | |
| | #2 | ||
| Amo Amas Amant Admin 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 |
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 | ||
| | |||
| | |
| The Following User Says Thank You to Topper For This Useful Post: | HB13DISH (22-07-2009) |
| | #3 | ||
| Super Moderator 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. | ||
| | |||
| | |
| The Following User Says Thank You to mhku For This Useful Post: | HB13DISH (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. | ||
| | |
| | #5 | ||
| Amo Amas Amant Admin 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 |
Of course mhku is quite correct with his dirty method which could be shortened by using 'md' instead of 'mkdir' | ||
| | |||
| | |
| | #6 | |||
| Archived Member Join Date: 13-08-2007 Location: Middle East - Israel
Posts: 3774
Thanks: 192
Thanked 459 Times in 356 Posts
|
![]() 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. | ||||
| | |
| | #7 | ||
| Specialist Contributor 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. | ||
| | |
| | #8 | |||
| Archived Member Join Date: 13-08-2007 Location: Middle East - Israel
Posts: 3774
Thanks: 192
Thanked 459 Times in 356 Posts
|
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. | |||
| | |
| | #9 | ||
| Specialist Contributor 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 Code: md Apple Peaches Grapes Pear Banana Thats pretty simple (no GUI though) | ||
| | |
| | #10 | |||
| Archived Member Join Date: 13-08-2007 Location: Middle East - Israel
Posts: 3774
Thanks: 192
Thanked 459 Times in 356 Posts
|
![]() 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. | |||
| | |
| | #11 | ||
| Specialist Contributor 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" ....... | ||
| | |
| The Following User Says Thank You to compufunk For This Useful Post: | HB13DISH (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. | ||
| | |
| | #13 | ||
| Amo Amas Amant Admin 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 |
Glad you got sorted to your satisfaction | ||
| | |||
| | |
| | #14 | ||
| Super Moderator 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? | ||
| | |||
| | |
| | #16 | ||
| Specialist Contributor 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.
| ||
| | |
| | #17 | ||
| Amo Amas Amant Admin 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 | | ||
| | |||
| | |
![]() |
| Bookmarks |
| Tags |
| defining, explorer, subfolders, windows |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |