02-19-2017, 09:31 PM
Because i just learned programming ,when i wanted to achieve the following features, Have encountered difficulties, I wanted someone to help me, thanks! :oops:
The current situation :
1.C drive has a folder: fold1, in this folder, contains a lot of sub-folders, such as: subfold1 subfold2 subfold3 subfold4 subfold5 ... ...
2. In each subfolder, there are many formats of files, such as: a.doc b.txt c.mp4 d.mp3 ...
What I want to do :
1. On the desktop, create a new folder, the name is txtfold
2. Then: copy the txt type of files in all subfolders of the fold1 folder to the txtfold folder
3. Finally: on the desktop to generate a txt file, the file name is txtfile, fold1 folder all the txt type of file name, write to the txtfile file (including the file path, for example: c:\fold1\subfold1\b.txt)
The current situation :
1.C drive has a folder: fold1, in this folder, contains a lot of sub-folders, such as: subfold1 subfold2 subfold3 subfold4 subfold5 ... ...
2. In each subfolder, there are many formats of files, such as: a.doc b.txt c.mp4 d.mp3 ...
What I want to do :
1. On the desktop, create a new folder, the name is txtfold
2. Then: copy the txt type of files in all subfolders of the fold1 folder to the txtfold folder
3. Finally: on the desktop to generate a txt file, the file name is txtfile, fold1 folder all the txt type of file name, write to the txtfile file (including the file path, for example: c:\fold1\subfold1\b.txt)