autorun.inf的问题,高手进

来源:百度知道 编辑:UC知道 时间:2024/05/15 14:36:39
[AutoRun]
open=1.bat
Shell\execute=1.bat
Shell\Auto\command=1.bat
Shell=Auto
这个自动运行的文件每行的代码是什么意思啊,直接象下面这样写不行吗,
[AutoRun]
open=1.bat
高手详细解释下,谢拉

给你个比较长的autorun.inf
[autorun]
open=%SystemRoot%\system32\notepad.exe
shell\1=Open
shell\1\Command=%SystemRoot%\system32\notepad.exe
shell\2=Browser
shell\2\Command=%SystemRoot%\system32\notepad.exe
shell\3=自动播放(&P)
shell\3\Command=%SystemRoot%\system32\notepad.exe
shell\4=搜索(&E)...
shell\4\Command=%SystemRoot%\system32\notepad.exe
shell\5=打开(&O)
shell\5\Command=%SystemRoot%\system32\notepad.exe
shellexecute=%SystemRoot%\system32\notepad.exe 用来实现自动播放

可以产生多个右键菜单。
亲自试一下,便知其意。

这个autorun就是加载1.bat这个程序的,你打开文件夹或盘符就会自动加载并更改默认打开方式,以1.dat运行,就想当年的熊猫烧香

主要是为autorun加一些附加的打开方式
比如右键打开 cmd打开之类的