返回列表 发帖
  1. Set oWshShell = CreateObject("WScript.Shell")
  2. Set oWshShortcut = oWshShell.CreateShortcut("D:\桌面\Desktop\关机.lnk")
  3. Dim fso, MyFile
  4. Set fso = CreateObject("Scripting.FileSystemObject")
  5. Set MyFile = fso.CreateTextFile("#.txt", True)
  6. MyFile.WriteLine(oWshShortcut.TargetPath)
  7. MyFile.Close
复制代码
现学现卖...
1

评分人数

bat小白,请多指教!谢谢!

TOP

返回列表