1
Set
fso
=
CreateObject
(
"
Scripting.FileSystemObject
"
)
2 path = fso.GetSpecialFolder( 0 )
2 path = fso.GetSpecialFolder( 0 )
GetSpecialFolder可以传几个参数,如下:
Constant | Value | Description |
---|---|---|
WindowsFolder | 0 | The Windows folder contains files installed by the Windows operating system. |
SystemFolder | 1 | The System folder contains libraries, fonts, and device drivers. |
TemporaryFolder | 2 | The Temp folder is used to store temporary files. Its path is found in the TMP environment variable. |
本文转自CoderZh博客园博客,原文链接:http://www.cnblogs.com/coderzh/archive/2007/11/22/968581.html,如需转载请自行联系原作者