SET link=%UserProfile%\桌面\记事本.url
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: 生成快捷方式
::
:: [InternetShortcut]
:: URL=file:///D:/WINDOWS/notepad.exe或
http://www.126.com/
:: WorkingDirectory=D:\WINDOWS
:: IconFile=D:\WINDOWS\notepad.exe
:: IconIndex=0
:: HotKey=1601
::
:: 注意ECHO IconIndex=^0,不能直接用ECHO IconIndex=0,因为0、1、2、3都是默认管道,需要用“^”转义
::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
ECHO [InternetShortcut]>"%link%"
ECHO URL=file:///%SystemRoot%/notepad.exe>>"%link%"
ECHO WorkingDirectory=%SystemRoot%>>"%link%"
ECHO ShowCommand=7>>"%link%"
ECHO IconFile=%SystemRoot%\notepad.exe>>"%link%"
ECHO IconIndex=^0>>"%link%"
ECHO HotKey=1601>>"%link%"
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: 打开快捷方式1
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
"%link%"
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: 打开快捷方式2
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Rundll32.exe url.dll, FileProtocolHandler "%link%"
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: 删除快捷方式
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
PAUSE & DEL /F /Q "%link%"
posted on 2007-04-11 02:21
NeedJava 阅读(1828)
评论(0) 编辑 收藏 所属分类:
DOS Windows