The direct path …
CONST MAX_PATH=256 Private Declare Function GetTempDir Lib "kernel32" Alias "GetTempPathA" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long
Function WinTempDir() As String 'Returns Temp Folder Name Dim strTempDir As String Dim lngX As Long strTempDir = String$(MAX_PATH, 0) lngX = GetTempDir(MAX_PATH, strTempDir) If lngX <> 0 Then WinTempDir = Left$(strTempDir, lngX) Else WinTempDir = "" End If End Function
-----Opprinnelig melding-----
Hi there
Can anybody tell me how to get the Windows temp path in a Visual Basic Code.
I need this for a Excel report generator witch does handle input from Axapta 3.0.
br. Mikael
Yahoo! Groups Links
|
Title: Meddelelse
- [development-axapta] Windows Temp Path in Visual Basic Mikael Dalgård
- Re: [development-axapta] Windows Temp Path in Visual B... Soldatov Anton
- RE: [development-axapta] Windows Temp Path in Visual B... Anil Ozay
- Pieter Wijnen