What's an efficient method in having an exe delete itself after completing its task?
What's an efficient method in having an exe delete itself after completing its task?
"If you tell the truth, you don't have to remember anything"
-Mark Twain
And why would you want to do that?
Not for some sort of malicious purpose I hope?
Actually, I asked because I was curious of how some Trojan servers do it. But, no, not for malicious purposes.
"If you tell the truth, you don't have to remember anything"
-Mark Twain
couldn't you just use a system command for that? like system("del xxxxx.exe");
i dunno just a guess
No, an application cannot delete itself.
You can spawn a process which will kill and delete the original process, than you can get windows to delete the spawned exectuable.
Yeah, could I send some command to windows to delete the exe at a certain time? Time bomb.....
"If you tell the truth, you don't have to remember anything"
-Mark Twain