自毁代码 [英] Self Destruct Code

查看:69
本文介绍了自毁代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人对如何编写自毁代码有任何想法?


我需要在下次数据库打开时运行一次性程序。如果

程序成功,则需要删除该程序,并且启动该程序的代码需要自行删除。


感谢您的任何建议!


Steve

解决方案

Steve写道:

有没有人对如何编写自毁代码有任何想法?

我需要在下次数据库打开时运行一次性程序。如果
程序成功,则需要删除该程序,并且启动程序的代码需要自行删除。



Self destruct代码不是个好主意!更改代码

模块是一个设计时操作,不应该在运行时执行



无论哪一个时间代码确实必须留下某种

轨道。您可以添加代码来测试

曲目,如果已​​经运行了
,则跳过运行一次性程序。


-

Marsh

MVP [MS Access]


Steve写道:

有没有人对如何编写自毁代码有任何想法?




是的。


Steve,

有没有人对如何编写自毁代码有任何想法?

我需要运行一次性程序下次数据库打开时。如果
程序成功,则需要删除该程序,并且启动程序的代码需要自行删除。




你是写一些恶意软件,你必须删除它之后的代码

已运行一次?


Thilo Immel


Does anyone have any ideas on how to write self-destruct code?

I need to run a one-time procedure the next time a database opens. If the
procedure is successful, the procedure needs to be deleted and the code that
initiated the procedure needs to delete itself.

Thanks for any suggestions!

Steve

解决方案

Steve wrote:

Does anyone have any ideas on how to write self-destruct code?

I need to run a one-time procedure the next time a database opens. If the
procedure is successful, the procedure needs to be deleted and the code that
initiated the procedure needs to delete itself.


"Self destruct" code is not a good idea! Changing a code
module is a design time operation, which should not be
performed at run time.

Whatever the one time code does must leave some kind of
tracks behind itself. You can add code to test for the
tracks and skip running the one time procedure if it has
already run.

--
Marsh
MVP [MS Access]


Steve wrote:

Does anyone have any ideas on how to write self-destruct code?



Yes.


Steve,

Does anyone have any ideas on how to write self-destruct code?

I need to run a one-time procedure the next time a database opens. If the
procedure is successful, the procedure needs to be deleted and the code that
initiated the procedure needs to delete itself.



Are you writing some malware that you have to delete the code after it
has run one time?

Thilo Immel


这篇关于自毁代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆