How do I get the path to a Windows Service executable

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

    #1

    How do I get the path to a Windows Service executable

    I tried reading a file into an application running as a Windows Service,
    however it is not returning the correct location for the running executable.
    How do I determine the full path for this?


  • Shrihari Devji

    #2
    Re: How do I get the path to a Windows Service executable

    Hello

    I think u can get the executable path using
    AppDomain.Curre ntDomain.BaseDi rectory



    Regards

    Shrihari Devji

    "Bill Fuller" <someone@nospam .comwrote in message
    news:eTdInK1fIH A.320@TK2MSFTNG P02.phx.gbl...
    >I tried reading a file into an application running as a Windows Service,
    >however it is not returning the correct location for the running
    >executable. How do I determine the full path for this?
    >

    Comment

    Working...