Answer the question
In order to leave comments, you need to log in
EXE file is not deleted. What to do?
Good day!
There is a python test.exe file that runs btest.bat :
In btest.bat :
os.system('C:\\btest.bat') # запускает btest.bat
taskkill /im test.exe # завершает процесс
del "C:\test.exe" # удаляет исполняемый test.exe
taskkill /f /im test.exe # завершает процесс
del "C:\test.exe" # удаляет исполняемый
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question