http://www.codeguru.com/win32/SelfDel.html Win32 Self-Deletion Function - Tony Varnas (2003/06/09) Use this method to create a self-deleting executable This works by invoking the command shell as a serialized process to delete the program file. (The article and source code were updated.)
呵呵,刚才测试时把win2000的记事本删除了,不过发现马上就有自动回来了,不知怎么搞得,好玩
Win32 Self-Deletion Function - Tony Varnas (2003/06/09)
Use this method to create a self-deleting executable This works by invoking the command shell as a serialized process to delete the program file. (The article and source code were updated.)