VBS Read Temp Directory User

Un esempio di come recuperare il path della direcory temporanera utente, in uno script VBS

'Come recuperare la directory temporanea utente 

Dim fso: Set fso = CreateObject("Scripting.FileSystemObject")  

Dim tempFolder: tempFolder = fso.GetSpecialFolder(2)  '2 = TemporaryFolder

MsgBox tempFolder
This entry was posted in VBScript. Bookmark the permalink.