it always return path C:\winnt\system32 ..why ?

Discussion in 'ASP .Net' started by raagz, Jul 16, 2004.

  1. raagz

    raagz Guest

    Hi,

    can anybody tell me why
    the following piece of code in my ASP.NET page always returns the path
    as C:\winnt\system32 ?

    FileInfo objf = new FileInfo("test.xml");
    string strFile = objf.DirectoryName;


    Thanks
    Raagz
     
    raagz, Jul 16, 2004
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. raagz
    Replies:
    2
    Views:
    517
  2. raagz
    Replies:
    0
    Views:
    367
    raagz
    Jul 16, 2004
  3. raagz
    Replies:
    0
    Views:
    347
    raagz
    Jul 16, 2004
  4. raagz
    Replies:
    0
    Views:
    404
    raagz
    Jul 16, 2004
  5. James
    Replies:
    1
    Views:
    660
    Raterus
    Jul 30, 2004
  6. Alejandro Becker
    Replies:
    3
    Views:
    2,662
    Juan T. Llibre
    Sep 11, 2005
  7. Mr. SweatyFinger

    why why why why why

    Mr. SweatyFinger, Nov 28, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    1,386
    Mark Rae
    Dec 21, 2006
  8. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,853
    Smokey Grindel
    Dec 2, 2006
Loading...