CreateProcessAsUser
CreateProcessAsUser copied to clipboard
How to create process with args
I could not handle to handle creating process with arguments. For example: I wanna create process with portable chrome. But i wanna open a html file in kiosk mode. How can i open sample.html file in portable chrome exe with --kiosk argument?
So what's the problem?
I have a html file in same directory and wanna open this html file in kiosk mode. i'm trying to do something like that:
string url = @System.AppDomain.CurrentDomain.BaseDirectory + "updater.html ";
string kioskMode = url + " --kiosk --incognito --disable-pinch --overscroll-history-navigation=0 ";
StartProcessAsCurrentUser("C:\\Chrome\\PortableChrome.exe", kioskMode);
At this rate google start in kiosk mode but doesnt open html file.
Does it open the html file with exactly the same parameters when run by the same user from the command line?
Sounds like this could be the same as #19. You should try the suggestion there. @uurynk any update for us?