How to access common folders in .NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am writing a windows service that needs to be able to access a file for attachment to an email message the service is generating. I think I remember that there was a way to get the application's current folder in VB6, but is there a way to do this in .NET? I need to know the exact location of this file for inclusion into an email message

Thanks
Chris Quick
 
Check out, variously, System.Environment.CurrentDirectory &
System.Windows.Forms.Application.StartupPath(), plus other properties on
those classes.

Nick Holmes.

cquick said:
I am writing a windows service that needs to be able to access a file for
attachment to an email message the service is generating. I think I remember
that there was a way to get the application's current folder in VB6, but is
there a way to do this in .NET? I need to know the exact location of this
file for inclusion into an email message.
 
Back
Top