本帖最后由 回家路上 于 2015-8-27 17:09 编辑
回复 3# king3cool - @if(0)==(0) echo off&echo;"%~1"|cscript -nologo -e:jscript "%~f0"& start /b "" "QuickPrintA.lnk" & exit&@end
-
- var objShell = new ActiveXObject("WScript.Shell");
- var objLink = objShell.CreateShortcut("QuickPrintA.lnk");
- objLink.TargetPath = WScript.StdIn.ReadLine();
- objLink.Save();
复制代码
- '&cls&@echo off&echo;"%~1"|cscript -nologo -e:vbscript "%~f0"& start /b "" "QuickPrintA.lnk" & exit&@end
-
- Set WshShell = Wscript.CreateObject("Wscript.Shell")
- Set oShellLink = WshShell.CreateShortcut("QuickPrintA.lnk")
- oShellLink.TargetPath = WScript.StdIn.ReadLine
- oShellLink.Save
复制代码
|