Amr Ashraf
Member
- Joined
- Apr 5, 2022
- Messages
- 14
- Programming Experience
- Beginner
Hello guys , I'm trying to run external app and suppress it's messages , That app showing a message when it completes a simple task , I need to suppress that message so I tried this :
The message still showing , So I added this line :
But it didn't work for me , The external app still showing a message after I run it using the mentioned code .
Thanks
C#:
public void TrustMe()
{
string dir = Environment.CurrentDirectory ;
using (Process ExternalProcess = new Process())
{
ExternalProcess.StartInfo.FileName = dir + @"\BaseetPath.exe";
ExternalProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
ExternalProcess.Start();
ExternalProcess.WaitForExit();
}
}
The message still showing , So I added this line :
C#:
ExternalProcess.StartInfo.Arguments = "/quiet";
But it didn't work for me , The external app still showing a message after I run it using the mentioned code .
Thanks