CreateProcessAsUser icon indicating copy to clipboard operation
CreateProcessAsUser copied to clipboard

How to create process with args

Open uguryanik opened this issue 7 years ago • 4 comments

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?

uguryanik avatar Feb 28 '18 09:02 uguryanik

So what's the problem?

AndrewSav avatar Feb 28 '18 19:02 AndrewSav

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.

uguryanik avatar Mar 02 '18 08:03 uguryanik

Does it open the html file with exactly the same parameters when run by the same user from the command line?

AndrewSav avatar Mar 02 '18 20:03 AndrewSav

Sounds like this could be the same as #19. You should try the suggestion there. @uurynk any update for us?

murrayju avatar Apr 04 '18 00:04 murrayju