المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Problem with System.Diagnostics.Process.Start [modified]



C# Programming
10-27-2009, 07:40 AM
if i write this way, then it works:
System.Diagnostics.Process.Start(@"C:\\if.log");
But if i want the text from other label like label3.Text, and it has the same path, then it doesnt work.
System.Diagnostics.Process.Start(@"{0}", label3.Text);
I make the user to open the file, then the label saves the file path and if the program needs to open the file, then it doesnt work, it works only if i write the path myself. Maybe someone knows how to use this method without saving the path to a label, then that would be better. Can someone help me with this please? http://www.barakasoft.com/script/Forums/Images/smiley_sigh.gif

modified on Monday, October 26, 2009 6:32 AM