Solved how to convert a list of files into a list of folders

January 19, 2015 at 05:48:27
Specs: Windows 7
how to turn a list of files in a folder MOVIES to be a list of sub folders in the folder MOVIES by using a batch facility

See More: how to convert a list of files into a list of folders

Report •

✔ Best Answer
January 20, 2015 at 10:48:18
You don't :-). Derek wasn't addressing your question.

You may want to post this over at programming /scripts forum.

First part of the script would be to read all the file names [dropping the extensions] then parse them to a script file which in turn would be used to create the folder structure.

Next part of the script would be to match x characters in the file name to the folder name to then copy that file to the folder.

You can manually delete the 300 movie files once you have confirmed the proper copy.

Answers are only as good as the information you provide.
How to properly post a question:
Sorry no tech support via PM's

message edited by wanderer



#1
January 19, 2015 at 06:52:36
Is there some specific reason why you want to use a batch file for this, rather than Windows?

Always pop back and let us know the outcome - thanks


Report •

#2
January 19, 2015 at 14:52:05
I expect that by "batch", the poster just means that all the folders should be
created in a single operation, not that it be done in a command prompt window.

Although, if I tried to think up a way to do it, it would most likely be using a
command prompt window. But since I don't know how to do it, I won't try to
answer the question...

-- Jeff, in Minneapolis

message edited by Jeff Root


Report •

#3
January 19, 2015 at 16:00:00

Report •

Related Solutions

#4
January 20, 2015 at 04:46:00
Thanks for your anwer. I think I used the term batch in a simplistic way just meaning how to achieve my goal in the shortest time when I have say 300 files to turn into folders. If you can guide me as to how I could do this in Win7 I would much appreciate it.
I have used computers for many years but have never gone into their inner workings.
For information my question relates to recorded films in Win7 where each film is a file in a folder, but I need to turn each film file into a subfolder for media centre hardware and linked software to be able to retreive film data from the internet.

Report •

#5
January 20, 2015 at 06:53:56
Thanks, but I don't know anything about programming so will have to find another way to achieve what I want.

Report •

#6
January 20, 2015 at 07:47:52
Keyboard commands are really helpful when handling files, just using Windows (no programming):
http://www.sllap.org.uk/llsdigiphot...

In a nutshell:

To highlight files, if you use Ctrl key you can add or remove single highlighted files.
To highlight a block of files you can also use Shift key at the each end of selection.
To highlight "all files" showing, use Ctrl+A
You can mix and match these to copy blocks of files or selections.

These keys can be useful too:
Ctrl+C is Copy.
Ctrl+X is Cut.
Ctrl+V is Paste.

Really worthwhile and quite easy when you get the hang of it. Best start is to simply practice highlighting selections.

Always pop back and let us know the outcome - thanks

message edited by Derek


Report •

#7
January 20, 2015 at 08:48:18
Thanks. How do you turn these copied files into individual folders within an upper folder ?

Report •

#8
January 20, 2015 at 10:48:18
✔ Best Answer
You don't :-). Derek wasn't addressing your question.

You may want to post this over at programming /scripts forum.

First part of the script would be to read all the file names [dropping the extensions] then parse them to a script file which in turn would be used to create the folder structure.

Next part of the script would be to match x characters in the file name to the folder name to then copy that file to the folder.

You can manually delete the 300 movie files once you have confirmed the proper copy.

Answers are only as good as the information you provide.
How to properly post a question:
Sorry no tech support via PM's

message edited by wanderer


Report •

#9
January 20, 2015 at 11:20:25
Looks like I must have drifted away to another planet then. Hope you find #6 useful for something or other.

Always pop back and let us know the outcome - thanks


Report •

#10
January 20, 2015 at 12:56:44
Sincere thanks to all contributors. This was my first ever forum question and I realise now that I should not have posted because I'm out of my depth, but I hope to achieve my goal in some other way.
My regards to all.

Report •

#11
January 20, 2015 at 19:46:00
The outline of how to do it provided by wanderer should be enough
to work with. Just about anyone with experience writing scripts or batch
files should be able to do this easily.

Refining wanderer's outline a bit, I would think one would read the
name of a file, (if necessary, determine whether it is a video file or not),
remove the filename extension, create a folder with that name, move
the file to the new folder, and get the next file. Sheesh! I haven't done
that sort of thing in years, but it sounds so simple, even a caveman like
me could do it.

-- Jeff, in Minneapolis


Report •

Ask Question