Getting a normalized app path info.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frank Rizzo

    #1

    Getting a normalized app path info.

    System.Reflecti on.Assembly.Get Executing().Get Name().CodeBase return the path
    in URL format.

    file:///C:/Code/.../MyFile.DLL

    Is there a function within the framework to return the standard path
    (c:\winnt\...\x .dll) or a function to convert the URL path to a regular
    path?

    Side question. Can I use the URL path format to open files with the stream
    classes?

    Thanks
    --
    Frank


  • Ignacio Machin

    #2
    Re: Getting a normalized app path info.

    Hi,


    Assembly.GetExe cutingAssembly( ).Location;

    Will do the trick :)

    Hope this help,

    --
    Ignacio Machin,
    ignacio.machin AT dot.state.fl.us
    Florida Department Of Transportation

    "Frank Rizzo" <nospam@nospam. com> wrote in message
    news:e$rc%23t6T DHA.2188@TK2MSF TNGP11.phx.gbl. ..[color=blue]
    > System.Reflecti on.Assembly.Get Executing().Get Name().CodeBase return the[/color]
    path[color=blue]
    > in URL format.
    >
    > file:///C:/Code/.../MyFile.DLL
    >
    > Is there a function within the framework to return the standard path
    > (c:\winnt\...\x .dll) or a function to convert the URL path to a regular
    > path?
    >
    > Side question. Can I use the URL path format to open files with the[/color]
    stream[color=blue]
    > classes?
    >
    > Thanks
    > --
    > Frank
    >
    >[/color]


    Comment

    • Frank Rizzo

      #3
      Re: Getting a normalized app path info.


      "Ignacio Machin" <ignacio.mach in AT dot.state.fl.us > wrote in message
      news:OUmRH66TDH A.1712@TK2MSFTN GP11.phx.gbl...[color=blue]
      > Hi,
      >
      >
      > Assembly.GetExe cutingAssembly( ).Location;
      > Will do the trick :)[/color]

      Thanks.

      --
      Frank


      Comment

      Working...