Click to See Complete Forum and Search --> : GetCurrentDirectory
How do you establish your current directory using the API?
Silicon Valley
Nov 17th, 2000, 11:27 AM
Public Declare Function GetCurrentDirectory Lib "kernel32" Alias "GetCurrentDirectory" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long
is that what you are looking for?
I found this in the API viewer and have tried to use it my code and can't get it written correctly. Any suggestions?
Chris
Nov 19th, 2000, 12:46 AM
To get your current application directory, you can use the App object in VB like app.path. No need to use the [b]GetCurrentDirectory[b] API function.
Chris
Nov 19th, 2000, 12:56 AM
I also encounter the following error when calling the GetCurrentDirectory API function:
Run-time error '453'
Can't find the DLL entry point in kernel32
Thanks alot Chris I program in asp ado and xml, don't know a whole lot about vb except what I get out of the help files. I thought that I would have to program this out of the api. Sure is nice to get some pointers from somebody who knows vb. Thanks.
Chris
Nov 20th, 2000, 07:22 PM
I also new in ASP, If you really need to know the current directory of your application. You still can use the App object with normal VB coding, but all you need is just compile your code into COM and run it under the MTS.
Hope this can give you some tips too. :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.