coderzh
1 Set fso = CreateObject("Scripting.FileSystemObject")
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.

分类:

技术点:

相关文章:

  • 2021-05-19
  • 2022-12-23
  • 2021-09-13
  • 2021-11-24
  • 2022-01-08
  • 2021-10-22
  • 2022-01-31
猜你喜欢
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
相关资源
相似解决方案