WPF命名空间问题 - 进程?

时间:2010-06-20 07:15:11

标签: wpf

private void button1_Click(object sender, RoutedEventArgs e) 
{ 
    Process virtualMouse = new Process(); 

    virtualMouse.StartInfo.FileName = "VirtualMouse.exe"; // Needs to be full path 
    virtualMouse.StartInfo.Arguments = ""; // If you have any arguments 

    bool result = virtualMouse.Start(); 
} 

但是我得到了错误

1 个答案:

答案 0 :(得分:0)

不确定您收到的错误,但您正在寻找的流程是System.Diagnostics.Process