I want to use a batch file to do something like this:
For example, on drive D there is a folder called “My Documents”
Under this folder there are many files. But they are all EXCEL files. For example, 1月.xls 2月.xls 3月.xls
So I want to use a batch file to delete this folder and everything under it. After deleting it, automatically create a folder again. The folder name should be the same as before, “My Documents” After the folder is created, also recreate the files in the folder the same as before deletion, such as 1月.xls 2月.xls 3月.xls (of course the recreated ones are empty files. What I really mean is to use a batch file to delete them and then recreate the same folder and files as before. Please help me with this. This job has to be done every month. Doing them one by one is too slow.
After the folder is created, finally display a message: " File deletion complete. The new folder and files have been created successfully" After this message appears for 15 seconds, the dialog box should disappear automatically.
For example, on drive D there is a folder called “My Documents”
Under this folder there are many files. But they are all EXCEL files. For example, 1月.xls 2月.xls 3月.xls
So I want to use a batch file to delete this folder and everything under it. After deleting it, automatically create a folder again. The folder name should be the same as before, “My Documents” After the folder is created, also recreate the files in the folder the same as before deletion, such as 1月.xls 2月.xls 3月.xls (of course the recreated ones are empty files. What I really mean is to use a batch file to delete them and then recreate the same folder and files as before. Please help me with this. This job has to be done every month. Doing them one by one is too slow.
After the folder is created, finally display a message: " File deletion complete. The new folder and files have been created successfully" After this message appears for 15 seconds, the dialog box should disappear automatically.
