Get the current temporary directory path in VBScript?

后端 未结 5 593
南旧
南旧 2020-12-29 06:09

The VB trick to get the path of the current temporary directory:

Private Declare Function GetTempPath Lib \"kernel32\" Alias \"GetTempPathA\" (ByVal nBufferL         


        
5条回答
  •  没有蜡笔的小新
    2020-12-29 07:02

    You can also keep using the GetTempPath API. It's a bit tricky to call APIs from vbscript though. Here are some pointers on how to make Win32 API calls from vbscript:

    Reference 1

    Reference 2

    Reference 3

提交回复
热议问题