Suppose I do not know the names of all the folders in the directory. I want to delete the entire .exe file in these folders from one bat file. What will be the team? Is it possible?
cd ? del *.exe
Try to do
del /s *.exe
/ S means delete from all subfolders (DELTREE)
Using FOR to iterate over directories:
for /d %i in (*.*) do del %i\*.exe
Source: https://habr.com/ru/post/1793151/More articles:C #: very fast search and retrieval of objects using any stability model - performanceHow to prevent interpretation of $ in JSP to create jQuery templates - jqueryКак программно сказать, сколько памяти использует приложение iOS? - memory-managementAre custom buttons in the warning window possible? - javascriptWhat is the shortest code for writing text / image in HWND - c ++Rails, scope, OR and unions - scopeTeam Foundation Server 2010 branching configuration - tfsNeither connectionDidFinishLoading: nor didFailWithError: get invoked - objective-cDoes jQuery Lazy make a real profit? - performanceHow do you download the rails application on a remote server in Development? - ruby-on-railsAll Articles