Make your own free website on

[an error occurred while processing this directive]
Private Declare Function GetCurrentDirectory Lib "kernel32" Alias "GetCurrentDirectoryA" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long
Private Sub Form_Paint()
    'KPD-Team 2000
    Dim sSave As String
    'create a buffer
    sSave = String(255, 0)
    'retrieve the current directory
    GetCurrentDirectory 255, sSave
    MsgBox sSave
End Sub

Copyright © 1998-2000, The KPD-Team.
Send mail to with comments about this web site.
This site is located at