There are several hundred files in one directory. Their filenames are similar, all like “20080102-XXX”, etc. Now I want to create corresponding subfolders in a format like “20080102”, etc., and put all files beginning with 20080102 into the matching folder. What should I do?
For example, if the folder contains the file: 20080103-Zhang Sanfeng-file
then create the subfolder 20080103, and put the above file into it
Similarly, put 20080506-Sun Xiaoyi-report materials into 20080506
Please don't hesitate to advise, thanks!
For example, if the folder contains the file: 20080103-Zhang Sanfeng-file
then create the subfolder 20080103, and put the above file into it
Similarly, put 20080506-Sun Xiaoyi-report materials into 20080506
Please don't hesitate to advise, thanks!
