回复 7# pcl_test
其实这里的 %temp% 已经被解释了...
by the way,如果变量 temp 不存在,ExpandEnvironmentStrings 会输出为 %temp%,改用 Environment.Item 可在 temp 不存在时结束 for /f- (new ActiveXObject('WScript.Shell')).Environment('process').Item('temp')
复制代码 当然更好的是用 GetSpecialFolder:- (new ActiveXObject('Scripting.FileSystemObject')).GetSpecialFolder(2)
复制代码
|