Windows 7 Forums
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: Bat File Help

08 Mar 2013   #1
R Fernandez

Windows 7
Bat File Help

I hope I'm posting in the correct forum.
Can someone show me how or create a bat file to open a folder an move a file to a new folder.
This what I have - A Main Folder with all my sub folders.

1) Open Main Folder (main folder have sub folders with different folder names)
2) Open each sub folders and move the file(s) to a new folder (all files in sub folders have a different file name and extension)
Results the new folder will have files only.
Thank you

My System SpecsSystem Spec
08 Mar 2013   #2

W7 Pro SP1 64bit

If this is something that you are going to be doing over and over again - then a batch file is what you need.

If this is for a one time change to the way you store some files - then you should search for *.*

Are all of the files uniquely named?
My System SpecsSystem Spec
08 Mar 2013   #3
R Fernandez

Windows 7

The files and folders are not uniquely named. All different file names with several different extensions.
Folder BOOKS File test.txt
MOVIES File test.mts
TOGET File test.xls etc
My System SpecsSystem Spec

09 Mar 2013   #4

W7 Pro SP1 64bit

Man - I must be going blind (or I was sleepy).
Your OP clearly stated "all files in sub folders have a different file name..."
Sorry about that.

Use the Windows (file) Explorer to search for *.*
Select/move the files to the desired "new folder".

If you need more details than that, then please post a screenshot of the folder structure that you are working with.

Screenshots and Files - Upload and Post in Seven Forums

Writing a batch file to do what you want would require even more details from you as to the folders involved.
My System SpecsSystem Spec

 Bat File Help

Thread Tools

Similar help and support threads
Thread Forum
Change File Associaton to Unknown File Type for .sdf file
I am using Windows 10 64 bit.At first the .sdf was not associated to any file type association like notepad etc.It was coming look for an app in store.I accidentally clicked on a file type association now can't find a solution to change it back to the default one(i.e pick an app from store) and...
Performance & Maintenance
Batch File .bat to copy file from File Sharing & FTP Hosting
Hi all, Any idea how to write Batch File .bat to copy file from File Sharing & FTP Hosting to local directory. Current the File Sharing & FTP Hosting is SMARTFILE. I don't want to use WINSCP as the connector. Thanks
General Discussion
when open a word file or pwrpnt file another file is opens
God bless you, I am not a computer person please help me to fix the problem I have. Every time I open a word, power point and note pad program another file is opens with that (with a infinity sign in the front with the same extension ) is that a thread or how can I stop this thank you...
Microsoft Office
Batch File that grabs file names from folder to insert into batch file
Ok I'm totally at a loss on how to word this so I'm just going to write it out the best that I can... :confused: First I have a batch file that I'm writing that will convert mp4 files to mp3 files (I have a lot) for a buddies band using ffmpeg. Here's the code that I'm using: ffmpeg -i...
General Discussion
How do I change a file's file type (not only file association)?
I need to change a zip file to an epub file. I have heard this can be done, but when I add the .epub after the file name, I notice the file is still actually zip type file when I right click properties. This is causing a problem when I try to open it in in different ebook reader programs. I...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:52.
Twitter Facebook