我正在處理需要自動提取WinRar SFX的程序。無論如何,我可以以編程方式點擊一個安裝按鈕,一旦exe啓動與進程?這是我迄今爲止的代碼。SFX安裝按鈕
public bool Extract()
{
try
{
Process process = new Process();
process.StartInfo.WorkingDirectory = FilePath;
process.StartInfo.FileName = FilePath + fileName;
process.Start();
process.WaitForExit();
}
catch (Exception)
{
return false;
}
return true;
}
可能重複[點擊從我的C#應用程序另一個應用程序的按鈕?](http://stackoverflow.com/questions/4899573/click-on-a-button-in-another-應用程序從我的C - 尖銳應用程序) – Sinatr 2015-01-15 16:09:26