Results 1 to 4 of 4

Thread: [2005] Howto get solution name

  1. #1

    Thread Starter
    Addicted Member dani2's Avatar
    Join Date
    Feb 2005
    Location
    Sibiu.ro
    Posts
    191

    [2005] Howto get solution name

    I have a solution which is basically an add-in to MS Outlook. For some reason I need to save some user configuration in user related folder. The problem is that Application.UserAppDataPath returns following folder: C:\Documents and Settings\Developer\Application Data\Microsoft Corporation\Microsoft Office Outlook and I dont want to use this, so I need to build my own inside Application Data folder.
    For this I need to get name of the solution.

    thank you
    Home is where your Head is

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Howto get solution name

    There is no "solution". A solution is a container for development projects. Once you compile and deploy the application is completely independent of the solution used to develop it.

    You don't need to get anything anyway. It's your add-in. You know what it's called. Just hard-code it:
    vb.net Code:
    1. Dim path As String = IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), _
    2.                                      "MyAddInName")
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,422

    Re: [2005] Howto get solution name

    to get the name of the executable while running it, you can use

    vb Code:
    1. Environment.CommandLine

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Howto get solution name

    Quote Originally Posted by .paul.
    to get the name of the executable while running it, you can use

    vb Code:
    1. Environment.CommandLine
    But the executable is Outlook, NOT the add-in.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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