Wicked One 612
New Member
please see this thread :
path of desktop for current userthis code (mean path) in my local machine was ok, but after publishing returns nothing...
i mean \[code\]Environment.GetFolderPath(Environment.SpecialFolder.Desktop)\[/code\] is empty after publish...\[code\] string path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); Response.Write(path); Response.Write("<br />"); Response.Write(Server.MapPath("/") + "myfile.htm"); Response.Write("<br />"); //string[] directory_list = Directory.GetDirectories(path); //foreach (string directory in directory_list) //{ // if (directory.Contains("blablabla")) // { // string sumfilePath = directory + @"\Sum.txt"; // Response.Write(sumfilePath); // } //}\[/code\]what is going on and how can i fix it?
path of desktop for current userthis code (mean path) in my local machine was ok, but after publishing returns nothing...
i mean \[code\]Environment.GetFolderPath(Environment.SpecialFolder.Desktop)\[/code\] is empty after publish...\[code\] string path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); Response.Write(path); Response.Write("<br />"); Response.Write(Server.MapPath("/") + "myfile.htm"); Response.Write("<br />"); //string[] directory_list = Directory.GetDirectories(path); //foreach (string directory in directory_list) //{ // if (directory.Contains("blablabla")) // { // string sumfilePath = directory + @"\Sum.txt"; // Response.Write(sumfilePath); // } //}\[/code\]what is going on and how can i fix it?