How to write a program in C++ such that it will delete itself after execution?

前端 未结 7 1051
醉话见心
醉话见心 2020-12-14 01:35

How to write a program in C++ such that it will delete itself after execution ?

7条回答
  •  Happy的楠姐
    2020-12-14 02:02

    For Windows try this. It is basically launching a .bat file that loops until the destruction is sucessful:

    http://www.codeproject.com/Articles/4027/Writing-a-self-destructing-exe-file

提交回复
热议问题