Path access

  • Thread starter Thread starter csharpula csharp
  • Start date Start date
C

csharpula csharp

Hello,
I fI want to access a file which is located in for example Resources
folder but not in my project and I want to access it from my project.
How can I do it? Can I do it using
Assembly.GetExecutingAssembly().FullName + @"Recources/abc.txt"
?
If not then how can I?
Thank u!
 
Hi

You have to know where the other project is located ...
If you know it relative to your project you could use:
"System.Windows.Forms.Application.StartupPath".
But you will have to parse StartupPath somehow ...

Best regards
Frank
 
Back
Top