Initial commit

This commit is contained in:
DemonGan 2022-04-14 14:01:12 +00:00
commit 0fae7250c7
2 changed files with 14 additions and 0 deletions

9
LICENSE Normal file
View File

@ -0,0 +1,9 @@
MIT License
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

5
README.md Normal file
View File

@ -0,0 +1,5 @@
# DeleteSelf
顾名思义这个程序功能很简单就是实现程序的自删除功能。在没有查资料之前我也感到困惑过一个程序自己运行着怎样把自己关掉后再把自己删除呢结束自己进程的时候自己也就结束了不会再继续执行任何代码了。在程序执行的时候文件处于打开状态那也不能把自己给删了。但是后来看到一个字眼变恍然大悟——“批处理”。程序自删除实现的思路便是程序创建一个批处理文件并创建进程执行皮吹然后程序结束进程批处理所做的功能便是延时5秒后删除指定程序然后再自删除。这样程序自删除功能便实现了。
功能:
1.程序自删