|
-
November 2nd, 2001, 11:51 AM
#1
HOw can I call GetCurrentDirectory() from VB?
Hi gurus,
How can I call GetCurrentDirectory()from VB.
Thanks,
Kareem.
~Kareem~
Dont forgot to rate it !!!
http://www.abkareem.com
------------------------------------
-
November 2nd, 2001, 11:56 AM
#2
Re: HOw can I call GetCurrentDirectory() from VB?
private Declare Function GetCurrentDirectory Lib "kernel32" Alias "GetCurrentDirectoryA" (byval nBufferLength as Long, byval lpBuffer as string) as Long
private Sub Form_Load()
'KPD-Team 2000
'URL: http://www.allapi.net/
'E-Mail: [email protected]
Dim sSave as string
'create a buffer
sSave = string(255, 0)
'retrieve the current directory
GetCurrentDirectory 255, sSave
MsgBox sSave
End Sub
-
November 2nd, 2001, 11:59 AM
#3
Re: HOw can I call GetCurrentDirectory() from VB?
Thanks. It is great!!
~Kareem~
Dont forgot to rate it !!!
http://www.abkareem.com
------------------------------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|