1.

Solve : How to create a batch file to move multiple files to another folder?

Answer»

I have a folder that contains multiple .txt files.

I know how to make a batch file to move files to ANOTHER SPECIFIED folder, but what I would like to do it move the files to a sub-directory and create the folder in the process.

Example:

My current folder is D:\Lidar

I would like to create the subfolder \XYZ and move all of the *.txt files to it.
Now, I can move the files without a PROBLEM, I need to do this for multiple folders and I would like to have a batch file to do this when I place it in the current folder.

D:\Lidar\XYZ

Any help would be greatly appreciated!

Thanks, in advance.Show us your batch file and maybe we can see how you can alter it.

This would make a folder called xyz under the current folder and move all the .txt files in that folder into it
Code: [Select]md xyz
move *.txt xyz
That worked Great! I was almost there myself. I KEPT getting an error, but I see what I did wrong.

Thank you very MUCH!!



Discussion

No Comment Found