2012-07-17 14 views

risposta

0

mia soluzione per questo problema, vale la risolto con "SendKeys":

var Proc = new System.Diagnostics.Process(); 
Proc.StartInfo.FileName = "C:\\Windows\\System32\\mstsc.exe"; 

//Proc.StartInfo.Arguments = "/v:" + "PCwg01"; normaly 
Proc.Start(); 

System.Threading.Thread.Sleep(100); 
SendKeys.Send("PCwg01"); //name or IP adress 
SendKeys.Send("\r"); 

spero che vi aiuterà;)

Problemi correlati