Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 514
  • Last Modified:

How to launch and taskill (without /F) a cmd.exe in Windows service?

Hi,
I have 2 questions:
1) Is it possible to launch an interactive GUI application from a Windows service so that     the app runs as a normal app (not service)?

2) When I launch cmd.exe from a Windows service application, the cmd.exe becomes a service. Can I safely terminate it (taskkill without /F option)? Or is there another way how to terminate it?

Thanks
John
0
tomasCZ1
Asked:
tomasCZ1
  • 2
1 Solution
 
x-menIT super heroCommented:
1) no
2) yes
0
 
tomasCZ1Author Commented:
Can you please tell me how to terminate cmd.exe service launched from a Windows service? Your help is greatly appreciated.

thanks in advance.
john
0
 
x-menIT super heroCommented:
sc stop <servicename>

or

taskkill cmd.exe
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now