Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Help Needed with Searching File/Folder/Move .Bat file

I've been searching the last 2 hours on a solution to my problem & have yet to find an answer so I thought I would post it here.

Description of Problem:

I have a folder dedicated for songs (guitar tabs & chords) that are .htm extensions, however I would like to move these songs to the/an appropriate Artist folder.

For Example: (current DIR layout)
Folder \ songtitlewithnospaces.htm

Ideal DIR layout
Artist Folder \ songtitlewithnospaces.htm

I have a listing or can create a listing (.txt file) of the songs by the artist, I need a way to search this .txt file for the song name (with no spaces i.e. songwithnospaces.htm) and move the file to the corresponding artist folder.

I would like to create a .bat file for this as I have 1000+ songs and to search/find & move each song file to the correct artist folder would take more time than I have.

filelist.txt is no good there's no way to determine which file belongs to which artist, except some that have the artist in the title.
The other two I can work with or creating a list in one file in the format I specified before.

that's why I was using 2 files i.e. Alabama.txt to get the songs by them and searching the Filelist.txt for the songs and then moving the .html files to the corresponding artist directory. Just trying to automate the process as much as I can as I have to make each artist song list manually.

I figure that I'll have to end up making a .bat file for each artist which is fine but I'm unfamiliar with all of the .bat file functions.

Only use the 2 copy lines or 2 move lines not all 4. I would use the copy lines as there will be less scripting then if all is successful then you can delete the originals.

Take note the two text files did not contain the extension .html on the file names if any list does then remove .* from "%%ilyricschords.*" for the copy lines or remove .html "%~dp0%%ilyricschords.html" for the move lines.

I can't see anyway of doing this any easier than manually creating the list files. Using a single list file in the format I specified before would take just as long to create but using find and replace in a good text editor could speed up the batch file creation.

EDIT: Just looked at your filelist.txt again and noticed all files contain "lyricschords" on the end so I updated the code to work with that.

Help Needed with Searching File/Folder/Move .Bat file

Can move only one file at a time within same folder or get error msgI often need to reorganise files and sub-folders within the same main folder, for example, move folder from sub-folder named documents to sub-folder named photos. However Explorer in Windows 7 Professional will only allow me to move one folder at a time. When I try to move a second folder I get the...

General Discussion

Can't rename, delete or move folder or fileSince 2 days, in a certain folder, I cant rename, move or delete folders or files. Now, it has spread to my desktop as well. If I rename a folder, even a new folder, the name changes ''magically'' within seconds to restore to its previous name. If I move the folder or file, it comes back and if I...

BSOD Help and Support

How do I move the Libraries folder location in File Explorer?The default build on my work machine is really annoying me.
They moved around default locations of several system-type folders.
Specifically, the Libraries folder in File Explorer is not on it's own root. it is instead, under the "Desktop" folder. I want to return the Libraries folder to...

General Discussion

how to move file in folderbefore you reinstall w7 files in folders can be moved
example files beginning with the letter A, which is the top of the folder can be moved at the bottom
closing and opening the folder remains the all clear
but now sit as "glued"
from where they waved box to be able to move