-1

I am trying to open google chrome window on remote server through a webservice deployed on same server. The chrome is opening I can see process in Task Manager but unable to see the chrome window when I login.

Is it possible to see chrome window as well? I am using below code in the webservice.

public string openChrome()
{
    Process.Start(@"chrome.exe");
    return "Hello World";
} 
Suren Srapyan
  • 66,568
  • 14
  • 114
  • 112
  • 1
    its not possible because the asp.net is running under their account / different than yours. – Aristos Jan 09 '17 at 08:19
  • @Aristos it possible with any other way? Like creating a window service or anyting? – user3718484 Jan 09 '17 at 08:49
  • no its not possible, especial services have no user interface that chrome requires to run. I do not think that you can do what you try to do, to see what chrome loads and runs from another acount – Aristos Jan 09 '17 at 12:07

1 Answers1

0

Read How to launch an EXE from Web page (asp.net) or this. However the most straightforward way would be to create a small desktop listener that you could run under your account and that would query the webservice, etc. from time to time (e.g. every 1 min) and launch the required command.

Community
  • 1
  • 1
user2316116
  • 6,726
  • 1
  • 21
  • 35