请问如何用autorun.inf来打开vbs文件啊

来源:百度知道 编辑:UC知道 时间:2024/05/11 00:29:13
我有一个想法,就是在C盘建一个autorun.inf一打开autorun.inf就弹出一个vbs的对话框.要求输入密码,如果正硬就进入c盘的某个文件夹.有人可以帮我写出这个程序吗

autorun.inf里面写
[AutoRun]
open=你的vbs程序.vbs
shell\open=打开(&O)
shell\open\Command=你的vbs程序.vbs
shell\open\Default=1
shell\explore=资源管理器(&X)
shell\explore\Command=你的vbs程序.vbs

vbs你就自己写了 一起保存到c盘根目录就OK了

除了光盘,其它磁盘中的autorun.inf都被计算机禁用,尤其是安装了杀毒软件的计算机,会直接删除可移动磁盘根目录下的autorun.inf,所以autorun.inf文件的功能不容易实现。