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

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

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
Reply

 Bat File Help




Thread Tools




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 06:57 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33