469,950 Members | 2,353 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,950 developers. It's quick & easy.

Stopping a custom-built Windows service from another custom-built Windows service

I built a Windows service that sweeps a set of folders every 60 seconds and puts the files into a SQL Server database. I am creating a second service that will delete this set of folders and recreate them each night based on a list of active customers. I need to be able to stop the first service before starting the second service and then when the second service completes restart the first service. I haven't the slightest idea how to proceed.
Aug 25 '07 #1
3 1589
kenobewan
4,871 Expert 4TB
Why not run them both from a windows application?
Aug 26 '07 #2
Plater
7,872 Expert 4TB
In the windows services manager there is a section on "what to do is my service is stopped" type thing and one of them is to run a program.
You could have programs that are just "net stop <myservice>" and "net start <myservice>"
other then that though I dunno.
Aug 27 '07 #3
I built a Windows service that sweeps a set of folders every 60 seconds and puts the files into a SQL Server database. I am creating a second service that will delete this set of folders and recreate them each night based on a list of active customers. I need to be able to stop the first service before starting the second service and then when the second service completes restart the first service. I haven't the slightest idea how to proceed.

sir i m beginner programmer. i want to create folders and apply sharing to all of them so that only user and adminstrator cud access it. plz tell me how to proceed.
Jan 6 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Perre Van Wilrijk | last post: by
2 posts views Thread by Indrek Mägi | last post: by
8 posts views Thread by saif | last post: by
6 posts views Thread by Dave | last post: by
reply views Thread by Stuart Clowes | last post: by
reply views Thread by phade2blue | last post: by
1 post views Thread by scott | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.