Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to call windows serviecs into windows application . i am all ready wrote code for windows services. how to call into windows application
Posted
Comments
Madhu Nair 27-Sep-11 5:31am    
Do you want to convert a windows service to windows application ?
Or call a windows application from windows service ? Please specify.
SAISAGAR nalla 27-Sep-11 7:41am    
call a windows application from windows service

C#
System.Diagnostics.Process.Start("notepad.exe");

To run another application from your .net application, use the
System.Diagnostics.Process[^]class. It is not necessary to create an instance
of the Process class to use it.Just provide the path of executable to run like
C#
Process.Start("C:\\MyAppFolder\\MyApp.exe")
 
Share this answer
 
 
Share this answer
 
Comments
SAISAGAR nalla 28-Sep-11 1:35am    
i am using windows services . my service also created which is located at services also. it's fine but i am getting this error when running my windows service "Can not start service from the command line or debugger. a WINDOWS SERVICE MUST BE INSTALLED(using installutil.exe) and then start with server explorer..... "

my service name is sai. my application name is myapplication

In vs command prompt i am using installutil myapplication.exe
bt also not working still i am getting above error... what can i do.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900