471,337 Members | 1,459 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Path access

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!

*** Sent via Developersdex http://www.developersdex.com ***
Jun 27 '08 #1
1 1012
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
"csharpula csharp" wrote:
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!

*** Sent via Developersdex http://www.developersdex.com ***
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

31 posts views Thread by John Roth | last post: by
1 post views Thread by Theerachet Pratoommanee | last post: by
70 posts views Thread by Michael Hoffman | last post: by
15 posts views Thread by (Pete Cresswell) | last post: by
1 post views Thread by Scott Vercuski | last post: by
1 post views Thread by VB Programmer | last post: by
2 posts views Thread by Tom Wells | last post: by
3 posts views Thread by David Thielen | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.