Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the problems encountered when deleting folders using batch processing

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report