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
UsernameIssues

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
UsernameIssues

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
Reply

 Bat File Help




Thread Tools





Similar help and support threads
Thread Forum
File Open or Choose File dialog hangs application after selection made
Hi. Windows 7 Pro SP1 64 bit Intel i5 CPU @2.67 GHz 8 GB RAM This problem just started recently or I only noticed it in the past week or so. When I'm in any application that launches the File Open dialog, including any browser's "Select File/Browse" button to choose a local file, when I...
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
CBS.log file: Getting a usable txt file and interpreting the file
First, what does "CBS" mean in cbs.log? Does the cbs.log file show only errors? I create a cbs.log file a lot, so if there are errors, I'd like to correct them. However, my computer seems to be working just fine. sfc /scannow shows everything is OK. I've tried findstr /c:""...
Performance & Maintenance
hidden file of docx file created with ~$name of file.docx file
whenever I open docx file there is hidden file ~$name of file.docx created. which type of file is that? Is it in virus, maleware. for example If I open house.docx file then ~$house.docx file created which is hidden form. I had saw this file when i select show all hidden file option. when i try to...
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 18:47.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App