1
Process proc = new Process();
proc.StartInfo.FileName = @"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe";
proc.StartInfo.Arguments = "web.whatsapp.com --new-window --remote-debugging-port=9222 --user-data-dir=\"Chrome Profile\"";
proc.Start();

The above code opens Chrome just fine in my PC. But I copied it to a client and the Chrome didn't opened. I cross checked chrome location, ran as administrator but for no help.

What might be the problem? I tried the above command in CMD on the client side and the chrome opened as expected. Then why can't C# open it?

Can this be anti-virus issue? (I didn't got a chance to disable anti-virus.)

Bhavya Gupta
  • 186
  • 2
  • 12

0 Answers0