I set Chrome as default brower. To open a URL in Chrome, I wrote:
Process.Start("http://domain.com");
Is any way to open that URL in incognito mode by c# (nomarly press Ctrl + Shift + N)?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll need to create a process with a path to Chrome’s exe file, and use the argument
--incognito.The path to chrome in windows is typically:
C:\Users\<UserName>\AppData\Local\Google\Chrome\chrome.exeUse the following code:
An article explaining this: http://www.tech-recipes.com/rx/3479/google-chrome-use-a-command-line-switch-to-open-in-incognito-mode/
The full chrome command-line switch directory: http://peter.sh/experiments/chromium-command-line-switches/