- 帖子
- 12
- 积分
- 192
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2008-5-5
|
我们甚至可以利用批处理来创建快捷方式。
例:
@echo off
echo [InternetShortcut] >hero.url
echo URL=c:\windows\system32\notepad.exe >>hero.url
echo IconIndex=20 >>hero.url
echo IconFile=C:\windows\system32\shell32.dll >>hero.url
pause
结果我们为windows的记事本创建了一个名为a.url的快捷方式。
解说:原理就是用批处理写一个url文件(当然要按照url文件的格式写)。“hero”是该快捷方式
的名称,“URL=c:\windows\system32\notepad.exe”指定了为哪个程序创建快捷方式,“IconIndex=20”和
“IconFile=C:\windows\system32\shell32.dll”决定了快捷方式的图标(当然,你也可以不用系统自带的
图标而使用你自己的图标)。
慢慢看吧 |
|