M
mohaaron
Can anyone tell me how to get the physical path where an application
lives? What I mean by an application is either a Windows Service or a
Winforms application. I know in asp.net Server.MapPath is what's used.
I need some type of equivelent for a non asp.net application.
The reason I need this is that I'm trying to write a file to a folder
on a server that I don't have access to. The only access I have is a
mapped drive to the machine where my Windows Service is going to be
installed. What I would like to do is get the physical path to a
directory which is actually a sub-directory of a web site on this
machine. If that is too diffecult to do then the physical path which
the Windows Service dll resides would also work as a secondary option.
Thanks.
lives? What I mean by an application is either a Windows Service or a
Winforms application. I know in asp.net Server.MapPath is what's used.
I need some type of equivelent for a non asp.net application.
The reason I need this is that I'm trying to write a file to a folder
on a server that I don't have access to. The only access I have is a
mapped drive to the machine where my Windows Service is going to be
installed. What I would like to do is get the physical path to a
directory which is actually a sub-directory of a web site on this
machine. If that is too diffecult to do then the physical path which
the Windows Service dll resides would also work as a secondary option.
Thanks.