Give me an example.
Now there is a hello.exe program on the machine can not be deleted, and into the task manager, found that it is running, but the task manager to end the process, hello.exe and automatically run (no matter what mechanism), the result is you still can not delete hello.exe
In the end, who started hello.exe we don't care, anyway, it's definitely a protection program, so how do we delete the protection program before it starts Hello.exe, that's what the following script can do:
The prerequisite is to find the process ID value of the running Hello.exe and then run the Hello.bat file as follows:
Del-f hello.exekill/f Hello's iddel-f hello.exe
The first sentence of Del-f Hello.exe is the key, which will allow windows to constantly try to delete the file for a short period of time, and the last sentence Del-f Hello.exe Basic is redundant
Then you need to run Hello.bat in the directory where Hello.exe is located
As for some. dll or something, how do you know which process is in use, and it's simple?
Run to the command line:
tasklist/m DLL Name
So that the corresponding process is terminated, and then the DLL can be deleted.
about how to remove stubborn programs on windows