在 VBScript 中获取当前的临时目录路径? [英] Get the current temporary directory path in VBScript?
本文介绍了在 VBScript 中获取当前的临时目录路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
获取当前临时目录路径的VB技巧:
The VB trick to get the path of the current temporary directory:
Private Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long
在 VBScript 中失败.那么?
fails in VBScript. So?
推荐答案
WScript.CreateObject("Scripting.FileSystemObject").GetSpecialFolder(2)
我花了一段时间才在 Google 上找到它.所以对于下一个寻找和我一样的...
It took me a while to find it on Google. So for the next one looking for the same as me...
这篇关于在 VBScript 中获取当前的临时目录路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文