Hi
I am doing project in c#.. Now i am trying to do following things..
After completing the downloading process a window should open that contains the downloaded folder..
If i right click the folder name context menu should open.. All these process i have done..
My Problem is, in context menu i have an option like "Open Location Window".. In this i have to
open the window where the downloaded folder resides..
I could not achieve this..
Can anybody help me?
with regards
Ila...
Loading
Kirtan PatelPosted Feb 22, 2010, 8:35 AM
Basically what i does is Taken One Class With Static String In Which When you select Folder For Downloading file ..that path will stored in variable and its accessible to All Forms ..as it public static ..
after that When you press That Menu to Open folder it takes path from that public variable that holds path i Open Folder :)
if you face any difficulty regarding to this then let me know :)
Karan PatelPosted Feb 22, 2010, 8:16 AM
{
//this code works fine for you
// just do Exception Handling Your-self
System.Net.WebClient wc = new System.Net.WebClient();
string url = "http://img535.imageshack.us/img535/7526/76340640.jpg";
saveFileDialog1.FileName = url.Substring(url.LastIndexOf("/")+1);
saveFileDialog1.ShowDialog();
string op = saveFileDialog1.FileName;
wc.DownloadFile(url,op);
string parentdir = op.Substring(0, op.LastIndexOf("\\"));
//MessageBox.Show(parentdir);
System.Diagnostics.Process.Start(parentdir);
// Dont forget to accpet answer
}
ilaPosted Feb 22, 2010, 7:35 AM
I have posted project plz find that
Kirtan PatelPosted Feb 22, 2010, 7:20 AM
[email protected]