本帖最后由 czjt1234 于 2022-12-29 09:02 编辑
回复 32# yyz219
- s = "D:\桌面\Desktop\关机.lnk"
- f = "#.txt"
-
- Set oWshShell = CreateObject("WScript.Shell")
- Set oWshShortcut = oWshShell.CreateShortcut(s)
- s = oWshShortcut.TargetPath
- Set oFSO = CreateObject("Scripting.FileSystemObject")
- Set oTextStream = oFSO.OpenTextFile(f, 2, True)
- oTextStream.Write s
- oTextStream.Close()
复制代码
|