"D:\AppServ\timer\win_cron_zq\定时.exe" 这是应用程序timer.lnk" 这是快捷方式的名称
echo ThePath = "D:\AppServ\timer\win_cron_zq\定时.exe">aaa.vbs
echo lnkname = "timer.lnk">>aaa.vbs
echo WS = "Wscript.Shell">>aaa.vbs
echo Set Shell = CreateObject(WS)>>aaa.vbs
echo Set Link = Shell.CreateShortcut(lnkname)>>aaa.vbs
echo Link.TargetPath = ThePath>>aaa.vbs
echo Link.Save>>aaa.vbs
echo Set fso = CreateObject("Scripting.FileSystemObject")>>aaa.vbs
echo f = fso.DeleteFile(WScript.ScriptName)>>aaa.vbs
start aaa.vbs