Application.ExecutablePath not recognisze by studio express 2005

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gs

    Application.ExecutablePath not recognisze by studio express 2005

    I do want the path and the filename of the executable. However, visual
    studio .net basic express 2005 rejects
    Application.Exe cutablePath
    Error 1 Name 'Application' is not declared. .....

    question what should I import or what prefix I should use?


  • gs

    #2
    Re: Application.Exe cutablePath not recognisze by studio express 2005

    I think I got around the problem with

    appPathFn = My.Application. Info.DirectoryP ath & "\" &
    My.Application. Info.AssemblyNa me

    I hope there is a simpler way.

    "gs" <gs@dontMail.te lus> wrote in message
    news:uZITcjckGH A.3304@TK2MSFTN GP03.phx.gbl...[color=blue]
    >I do want the path and the filename of the executable. However, visual
    >studio .net basic express 2005 rejects
    > Application.Exe cutablePath
    > Error 1 Name 'Application' is not declared. .....
    >
    > question what should I import or what prefix I should use?
    >
    >[/color]


    Comment

    • Cor Ligthert [MVP]

      #3
      Re: Application.Exe cutablePath not recognisze by studio express 2005

      gs.

      The ExecutablePath is including the executable name
      Teh application.sta rtup path is the same without that

      Gets the path for the executable file that started the application, not including the executable name.


      I hope this helps,

      Cor

      "gs" <gs@dontMail.te lus> schreef in bericht
      news:uZITcjckGH A.3304@TK2MSFTN GP03.phx.gbl...[color=blue]
      >I do want the path and the filename of the executable. However, visual
      >studio .net basic express 2005 rejects
      > Application.Exe cutablePath
      > Error 1 Name 'Application' is not declared. .....
      >
      > question what should I import or what prefix I should use?
      >
      >[/color]


      Comment

      • Cor Ligthert [MVP]

        #4
        Re: Application.Exe cutablePath not recognisze by studio express 2005

        gs,

        Please don't restart your questions in new threads, this is misleading for
        those who try to help you, while it is very bad for searching this
        newsgroup. It seems than if threads are not completely answered.

        Thanks in advance.

        Cor

        "gs" <gs@dontMail.te lus> schreef in bericht
        news:uZITcjckGH A.3304@TK2MSFTN GP03.phx.gbl...[color=blue]
        >I do want the path and the filename of the executable. However, visual
        >studio .net basic express 2005 rejects
        > Application.Exe cutablePath
        > Error 1 Name 'Application' is not declared. .....
        >
        > question what should I import or what prefix I should use?
        >
        >[/color]


        Comment

        Working...