
vbscript腳本中文件路徑含有%TEMP%如何轉(zhuǎn)義成普通字符串vbscript腳本中文件路徑含有 %TEMP%,但我不想 %temp% 求值,如何轉(zhuǎn)義呢?
nclick="copycode($('code0'));">復(fù)制代碼
- Set WshShell=CreateObject(Wscript.Shell)
- strDesKtop=WshShell.SpecialFolders(DesKtop)
- Set oShelllink=WshShell.CreateShortcut(strDesKtop&8.3dos_short2long.lnk)
- sss=D:UserstestDesktopa ; & % & TEMP & %
- Wscript.Echo sss
- oShelllink.TargetPath=sss
- oShelllink.WindowStyle=1
- oShelllink.Description=測試“創(chuàng)建桌面快捷方式”
- oShelllink.Save

