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

  • Thread starter Thread starter raagz
  • Start date Start date
R

raagz

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
 
Hi Raagz

I think you should use the follwoing statament
mappath("Path")
this will solve the problem
 
Back
Top