I start a process:
Process process = new Process
{
StartInfo =
{
FileName = wFileLocation,
Arguments = arguments + currentUrl,
WindowStyle = ProcessWindowStyle.Normal
}
};
process.Start();
process.WaitForExit();
process.Close();
The problem is that windows asks me whether it is worth opening a file, it can be dangerous. How to avoid this?
Is windows API (find window and imitate click on accept) can solve this problem?