CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2001
    Location
    Michigan
    Posts
    2,222

    Visual Basic start-in directory

    I need to obtain visual basic code to determine the "start-in" directory. The dir where the project is run from.

    I cannot use the CurDir function because the directory is changed in various parts of the program and I am having a hard time determining where. Is there any other way of extracting this information.

    Thanks,
    Kevin

  2. #2
    Join Date
    Dec 2001
    Posts
    6,332

    Re: Visual Basic start-in directory

    Perhaps you need to use App.Path?
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

  3. #3
    Join Date
    Aug 2003
    Location
    India
    Posts
    81

    Re: Visual Basic start-in directory

    app.path & "/" & "file_name"

  4. #4
    Join Date
    Jun 2001
    Location
    Michigan
    Posts
    2,222

    Re: Visual Basic start-in directory

    Thanks guys, that's exactly what I was looking for... so simple.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured