Get the current temporary directory path in VBScript?

后端 未结 5 582
南旧
南旧 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 06:43

    WScript.CreateObject("Scripting.FileSystemObject").GetSpecialFolder(2)
    

    It took me a while to find it on Google. So for the next one looking for the same as me...

提交回复
热议问题