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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top