-
-
Save simonxiao86/cd0ea2952924a2bfb9c0bc8c621f50f3 to your computer and use it in GitHub Desktop.
sendto定制快速生成快捷方式
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Dim name,msg | |
| msg="请输入文件名称:" | |
| name=Inputbox(msg) | |
| Set Arg = WScript.Arguments | |
| set WshShell=WScript.CreateObject("WScript.Shell") | |
| strDirectory="d:\qr" | |
| set oShellLink=WshShell.CreateShortcut(strDirectory & "\" & name & ".lnk") | |
| oShellLink.TargetPath=Arg(0) | |
| oShellLink.IconLocation=Arg(0) | |
| oShellLink.WorkingDirectory=strDirectory | |
| oShellLink.Save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment