SET link=%UserProfile%\桌面\记事本.url
rem ======================
rem 快捷方式文件格式,其中假设win在c:\windows
rem [InternetShortcut]
rem URL=file:///C:/WINDOWS/notepad.exe
rem WorkingDirectory=C:\WINDOWS
rem IconFile=C:\WINDOWS\notepad.exe
rem IconIndex=0
rem HotKey=1601
rem 热键ctrl+alt+A
rem 注:要用IconIndex=^0,不能用IconIndex=0,0、1、2、3都是默认管道,用“^”转义
rem ========================
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%"
SET link=