Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / June 2008



Tip: Looking for answers? Try searching our database.

Fetch current folder

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Hibbs - 16 Jun 2008 14:18 GMT
How can I determine the name and path of the folder in which my VB6
app is running.

Peter Hibbs.
Jan Hyde (VB MVP) - 16 Jun 2008 15:59 GMT
Peter Hibbs <peter.hibbs@btinternet.com.NO_SPAM>'s wild
thoughts were released on Mon, 16 Jun 2008 14:18:01 +0100
bearing the following fruit:

>How can I determine the name and path of the folder in which my VB6
>app is running.

app.path

--
Jan Hyde

https://mvp.support.microsoft.com/profile/Jan.Hyde
Peter Hibbs - 16 Jun 2008 16:23 GMT
Thanks very much Jan, I knew it had to be simple.

Peter.

>Peter Hibbs <peter.hibbs@btinternet.com.NO_SPAM>'s wild
>thoughts were released on Mon, 16 Jun 2008 14:18:01 +0100
[quoted text clipped - 4 lines]
>
>app.path
Tony Proctor - 19 Jun 2008 15:46 GMT
That's not quite true Jan. That's the directory where the *.vbp or *.exe
file came from. Although the question might have been ambiguous, the current
working directory (i.e. where files are read and written by default) would
be returned by CurDir()

   Tony Proctor

> Peter Hibbs <peter.hibbs@btinternet.com.NO_SPAM>'s wild
> thoughts were released on Mon, 16 Jun 2008 14:18:01 +0100
[quoted text clipped - 9 lines]
>
> https://mvp.support.microsoft.com/profile/Jan.Hyde
Peter Hibbs - 19 Jun 2008 20:01 GMT
Tony,

The app.path was what I wanted, i.e. the folder in which the app is
sitting. Using 'current folder' in the Subject line perhaps was a bit
misleading. Thought I would just clarify and thanks for your response.

Peter Hibbs.

>That's not quite true Jan. That's the directory where the *.vbp or *.exe
>file came from. Although the question might have been ambiguous, the current
[quoted text clipped - 16 lines]
>>
>> https://mvp.support.microsoft.com/profile/Jan.Hyde 
Tony Proctor - 20 Jun 2008 08:46 GMT
Thanks for the update Peter. I did wonder whether that's what you really
meant, and I knew Jan knows the difference. However, I decided to reply
mostly for the benefit of the newsgroup archives

   Tony Proctor

> Tony,
>
[quoted text clipped - 25 lines]
>>>
>>> https://mvp.support.microsoft.com/profile/Jan.Hyde
Jan Hyde (VB MVP) - 20 Jun 2008 09:09 GMT
"Tony Proctor"
<tony_proctor@aimtechnology_NoMoreSPAM_.com>'s wild thoughts
were released on Thu, 19 Jun 2008 15:46:59 +0100 bearing the
following fruit:

>That's not quite true Jan. That's the directory where the *.vbp or *.exe
>file came from. Although the question might have been ambiguous, the current
>working directory (i.e. where files are read and written by default) would
>be returned by CurDir()

The OP asked for the directory where the exe resides. I
didn't see anything ambiguous. Not that it matters, the
extra information may prove useful anyway.

J

>    Tony Proctor
>
[quoted text clipped - 11 lines]
>>
>> https://mvp.support.microsoft.com/profile/Jan.Hyde 

--
Jan Hyde

https://mvp.support.microsoft.com/profile/Jan.Hyde
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.