回复 1# 一步莲华
保存为 VBS 文件- Set fso = CreateObject("Scripting.FileSystemObject")
- GetTheParent = fso.GetParentFolderName(WScript.ScriptFullName)
- Set WshShell = WScript.CreateObject("WScript.Shell")
- AllUsersDesktop = WshShell.SpecialFolders("AllUsersDesktop")
- Set b = WshShell.CreateShortcut(AllUsersDesktop & "\VMware.lnk")
- b.TargetPath = "" & GetTheParent & "\vmware.exe"
- b.Arguments = "-x """ & GetTheParent & "\vmwarexuniji\centos.vmx"""
- b.WorkingDirectory = GetTheParent
- b.Save
- WScript.Quit
复制代码
|