vbscript 脚本中文件路径含有 %TEMP%,但我不想 %temp% 求值,如何转义呢?- Set WshShell=CreateObject("WScript.Shell")
- strDesKtop=WshShell.SpecialFolders("DesKtop")
- Set oShellLink=WshShell.CreateShortcut(strDesKtop&"\8.3dos_short2long.lnk")
- sss="D:\Users\test\Desktop\a ;" & "%" & "TEMP" & "%"
- WScript.Echo sss
- oShellLink.TargetPath=sss
- oShellLink.WindowStyle=1
- oShellLink.Description="测试“创建桌面快捷方式”"
- oShellLink.Save
复制代码
|