Results 1 to 2 of 2

Thread: GetTmpPath

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Location
    Oporto - Portugal
    Posts
    16

    Post

    Hi

    Where is more convenient to use these API in a form ?
    By a click or load?

    When i run an apllication where goes temporary files? Did they go automatically to temp directory?


    Thanks in advance

  2. #2
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    I think so, If you really need to get the temp files then you need to used the GetTempFile API function to locate the Windows Temporary Directory as below:

    Code:
        Dim strTemp As String
        strTemp = String(100, Chr$(0))
        GetTempPath 100, strTemp
        strTemp = Left$(strTemp, InStr(strTemp, Chr$(0)) - 1)
        MsgBox "Windows Temp Directory is " & strTemp

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width