Jump to content

Getting files from folders windows

Go to solution Solved by Guest,
1 minute ago, Windows7ge said:

I'm trying to think. There's a program called FreeFileSync it'd go into every single directory and see what files are in them but I'm not sure if it's capable of copying the files to a different directory without the folders. The program accepts CMD commands. There might be an argument to exclude folders.

I actually figured it out. All you have to do is put the file type in windows search (in my case all the files are the same type).

So i just for example put ".mp4" in windows search and it lists all the files without the folders surrounding them, so i can just do that.

Ok my problem is hard to explain, but ill try my best. So a certain program thought it was a good idea to some of my files and put them each into a folder, creating a lot of folders with only 1 file in them. Is there a way in windows to delete all these folders, so what i end up with is 1 folder, with all the fails in it. I can't go manually to each folder, and then take out the 1 file, and delete the folder. 

Link to comment
https://linustechtips.com/topic/936561-getting-files-from-folders-windows/
Share on other sites

Link to post
Share on other sites

I'm trying to think. There's a program called FreeFileSync it'd go into every single directory and see what files are in them but I'm not sure if it's capable of copying the files to a different directory without the folders. The program accepts CMD commands. There might be an argument to exclude folders.

Link to post
Share on other sites

Go into the parent directory for all the subfolders with files you want to move. Type *.* into the search bar and all the files will show up (and the folders at the top, most likely). Copy/cut all the files into a new directory, then you can delete all the subfolders. 

 

If all the files are of the same type, you can use this in either CMD or a .bat file:

 

xcopy C:\source_folder\*.ext D:\destination_folder /e

Link to post
Share on other sites

1 minute ago, Windows7ge said:

I'm trying to think. There's a program called FreeFileSync it'd go into every single directory and see what files are in them but I'm not sure if it's capable of copying the files to a different directory without the folders. The program accepts CMD commands. There might be an argument to exclude folders.

I actually figured it out. All you have to do is put the file type in windows search (in my case all the files are the same type).

So i just for example put ".mp4" in windows search and it lists all the files without the folders surrounding them, so i can just do that.

Link to post
Share on other sites

1 minute ago, Oshino Shinobu said:

Go into the parent directory for all the subfolders with files you want to move. Type *.* into the search bar and all the files will show up (and the folders at the top, most likely). Copy/cut all the files into a new directory, then you can delete all the subfolders. 

 

If all the files are of the same type, you can use this in either CMD or a .bat file:

 

 


xcopy C:\source_folder\*.file D:\destination_folder /e

 

That is very similar to what i ended on doing. i typed ".mp4" and it listed all the files i needed, and it didnt show the folders at all.

Link to post
Share on other sites

Just now, Some Random Member said:

That is very similar to what i ended on doing. i typed ".mp4" and it listed all the files i needed, and it didnt show the folders at all.

Yeah, I think folders show up with * because it's a wildcard

Link to post
Share on other sites

4 minutes ago, Some Random Member said:

I actually figured it out. All you have to do is put the file type in windows search (in my case all the files are the same type).

So i just for example put ".mp4" in windows search and it lists all the files without the folders surrounding them, so i can just do that.

If the file extensions are all the same that makes things a lot easier.

 

I also figured there was a CMD command that would achieve the same objective but I wasn't sure what argument would exclude the folders.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×