Title: Meddelelse

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-----
Fra: Mikael Dalgård [mailto:[EMAIL PROTECTED]
Sendt: 2. april 2004
10:11
Til: [EMAIL PROTECTED]
Emne: [development-axapta] Windows Temp Path in Visual Basic

 

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 Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to