■使用
之前在bat程序中看到了如下的定义
'---win10 自带的截图工具
Set wshShell = Wscript.CreateObject("Wscript.Shell")
wshShell.Run("%windir%\system32\SnippingTool.exe")
还有如下代码
'---Excel 中 个人工作簿的保存位置
%userPorfile%\AppData\Roaming\Microsoft\Excel\XLSTART\PERSONAL.XLSB
https://blog.youkuaiyun.com/sxzlc/article/details/76559328
■含义
1.windir
C:\Users>echo %windir%
C:\WINDOWS
2.userProfile
C:\Users>echo %userprofile%
C:\Users\UserName
---