Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old June 27th, 2007, 02:06 AM
edfollett's Avatar
edfollett edfollett is offline
Mystical Monkey with Wings
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: SW1A London UK
Posts: 500 edfollett User rank is Corporal (100 - 500 Reputation Level)edfollett User rank is Corporal (100 - 500 Reputation Level)edfollett User rank is Corporal (100 - 500 Reputation Level)edfollett User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 12 h 59 m 21 sec
Reputation Power: 9
Creating a Windows Service

Hey,

Quite a broad question now!

has anyone got any good links to help describe how to make a basic Service in windows.

basically i want a process that polls lets say every 10 mins checking to see if another service is running! if it isnt then i want it to create a file

sounds simple but im stuggling starting!

Any ideas would be great!

Thanks
__________________
To fly a Kite high you have to fly against the wind!

think about it..... deep man deep!!

Current Project
Contact me

Reply With Quote
  #2  
Old June 28th, 2007, 07:03 AM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 592 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 1 h 56 m 16 sec
Reputation Power: 17
use sc.exe to make a service, giving it the binPath to an executable file of some sort -- search msdn for details. You might want a scheduled task instead though.

Reply With Quote
  #3  
Old July 27th, 2007, 02:55 AM
Nilpo's Avatar
Nilpo Nilpo is offline
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Salem, OH
Posts: 340 Nilpo User rank is Sergeant Major (2000 - 5000 Reputation Level)Nilpo User rank is Sergeant Major (2000 - 5000 Reputation Level)Nilpo User rank is Sergeant Major (2000 - 5000 Reputation Level)Nilpo User rank is Sergeant Major (2000 - 5000 Reputation Level)Nilpo User rank is Sergeant Major (2000 - 5000 Reputation Level)Nilpo User rank is Sergeant Major (2000 - 5000 Reputation Level)  Folding Points: 177725 Folding Title: Super Ultimate Folder - Level 1Folding Points: 177725 Folding Title: Super Ultimate Folder - Level 1Folding Points: 177725 Folding Title: Super Ultimate Folder - Level 1Folding Points: 177725 Folding Title: Super Ultimate Folder - Level 1Folding Points: 177725 Folding Title: Super Ultimate Folder - Level 1Folding Points: 177725 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 2 Days 11 h 55 m 56 sec
Reputation Power: 50
Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo
Hey, edfollett,

Sorry for not seeing this thread until now, but if you still need this solution, it can be done pretty easily in WMI. Post back if you're still interested and I'll help you write the script.
__________________
Ask the Windows Guru!

Open me for some very useful links!    

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > Creating a Windows Service


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway