GetFolderPath Problem

  • Thread starter Thread starter Bryan Tang
  • Start date Start date
B

Bryan Tang

Dear all professional,

I have problem. the 1st statement can return the path of Windows system
folder however the 2nd statement doesn't return the path of "Favorites". Why
this will happen? Any solution?

public string myFavorites =
Environment.GetFolderPath(Environment.SpecialFolder.System);
public string myFavorites =
Environment.GetFolderPath(Environment.SpecialFolder.Favorites);


Bryan
 
Bryan Tang said:
Dear all professional,

I have problem. the 1st statement can return the path of Windows system
folder however the 2nd statement doesn't return the path of "Favorites". Why
this will happen? Any solution?

public string myFavorites =
Environment.GetFolderPath(Environment.SpecialFolder.System);
public string myFavorites =
Environment.GetFolderPath(Environment.SpecialFolder.Favorites);

Then what does the 2nd statement return to you?
 
The 2nd statement return "". Not only Favorites, History also return "".
 
I did something wrong in IIS. I building a web application host in IIS.
Sometime I will work in my house, sometime in office. For convenience, I
copy the whole virtual directory in IIS to synchronize the changes. I think
I should only copy those changed codes and forms. I solve the problem by
re-build the virtual directory of my web application.
 

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