Path access

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • csharpula csharp

    #1

    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.GetExe cutingAssembly( ).FullName + @"Recources/abc.txt"
    ?
    If not then how can I?
    Thank u!



    *** Sent via Developersdex http://www.developersdex.com ***
  • =?Utf-8?B?RnJhbmsgVXJheQ==?=

    #2
    RE: Path access

    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.Applicat ion.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.GetExe cutingAssembly( ).FullName + @"Recources/abc.txt"
    ?
    If not then how can I?
    Thank u!
    >
    >
    >
    *** Sent via Developersdex http://www.developersdex.com ***
    >

    Comment

    Working...