can someone please tell me the function to get the path where the exe thats running resides and the refrence library needed
Printable View
can someone please tell me the function to get the path where the exe thats running resides and the refrence library needed
You could use the GetFullPathName API to retrieve the path of an .exe, but I don't know of any way to be able to tell what reference libraries have been compiled into it.
can't use api's...working with excel...would there be anything in scripting runtime...
You can use APIs with Excel. Are you needing the exe path of Excel or a VB6 program or ???
i'm making an exe in vb6. i want to get the location where the exe is residing run time. can't use api cos i wud be making an exe without the installation wizard. and api libraries are not installed on the system where i wud be putting it
Oh, then in vb6 you can just use the App.Path to get the location of your running exe file. ;)
would i need any reference libraries
Just the standard MS VB runtime library same one as your program requires.
i'll check that out..thanks a lot