What are the problems encountered when deleting folders using batch processing
This article mainly explains "what are the problems encountered when deleting folders using batch processing". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. let's go deep into the editor's train of thought. Let's study and learn what are the problems encountered when deleting folders using batch processing.
Disk C has a folder 1 with 2.exe and 3.exe in it. To do a batch, first run 1.exe, then run 2.exe after the installation is complete, and wait until the 2.exe installation is complete, delete folder 1 my code is as follows
@ echo offstart / wait "" C:\ 1\ 2.exe "& &" C:\ 1\ 3.exe "& & rd / s / Q C:\ 1 & & del xit
Now there is a drawback. After installation of 2 and 3, folder 1 cannot be deleted, where 2.exe is deleted and 3.exe still exists. I don't know what went wrong.
Here is the solution given by the Great God.
Check whether the next two programs have been installed and exited. If the process is still there, it may not be deleted due to occupation.
@ echo offstart / wait "" C:\ 1\ 2.exe "start / wait"C:\ 1\ 3.exe" taskkill / f / im "2.exe" taskkill / f / im "3.exe" rd "C:\ 1" / s / qdel% 0 Thank you for reading. These are the contents of "what are the problems encountered when deleting folders in batch processing". After the study of this article I believe that you have a deeper understanding of the problems encountered when using batch processing to delete folders, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!