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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top