VB高手请写写简单代码

来源:百度知道 编辑:UC知道 时间:2024/09/23 03:27:00
将文件
C:\Documents and Settings\Administrator\桌面\新建 文本文档.vbe
加入开机自动运行的VB代码怎么写的?
我是垃圾,大家不要K我~
不是啊,我要它也是一个单独VBE文件

调用API写注册表
不过希望你不要干坏事啊

最简单的方法
复制到
C:\Documents and Settings\All Users\「开始」菜单\程序\启动
里面

copyfile "C:\Documents and Settings\Administrator\桌面\新建 文本文档.vbe ", "C:\Documents and Settings\All Users\「开始」菜单\程序\启动\新建 文本文档.vbe "

要用到API调用注册表。