Sunday, June 21, 2020

How to move files from all the sub directorys to another which dont no the directory name

I had an issue where I need to move some files from one folder to another folder but the challenge was the source folder name get change time to time.
Basically the folder name will be a random GUID.

So I was unable to stick to a simple windows batch command because I don't n know the exact source folder name where my files available.

So this is a simple solution for that.
Just download the below EXE file and pass the arguments as it shows.

Basically what it does was extract everything from subfolders (what ever the sub folder name) on a given folder and place them on another folder.

https://drive.google.com/file/d/1v-JbHRvzXdfpMYfpZoAvEetLx2Bdzi4E/view?usp=sharing

MoveFiles.exe "source folder where your files stay" "Target folder where you want to move the files" "what kind of file extensions you need to move"

MoveFiles.exe "C:\Development\XXX\XXX" "C:\Development\XXX\XXX"  "*.XXX"


No comments:

Post a Comment