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

مشاهدة النسخة كاملة : CMD.exe help



C# Programming
06-11-2009, 07:00 PM
I’m trying to run the following command string from a GUI, everything works fine but I can minimize the command prompt or run it in hidden mode.

Any way to do this?


string stfamtv0001 = "/C" + ("\"\"C:\\Program Files\\ ThinTV\\PLINK.EXE\"" + " " + "appliance@%ThinConnectedFrom%" + " " + "-pw appliance" + " " + "\"killall -q vlc; export DISPLAY=http://www.barakasoft.com/script/Forums/Images/smiley_redface.gif.0; vlc --video-on-top --key-vol-up 100 rtsp://stfamtv0001/streama\"\"");

private void data(string streamPath)
{
System.Diagnostics.Process ps;
ps = new System.Diagnostics.Process();
ps.EnableRaisingEvents = false;
System.Diagnostics.Process.Start("CMD.exe", streamPath);
ps.Close();
}

private void btnFOX_Click(object sender, EventArgs e)
{
data(stfamtv0001);

}