Click here to Skip to main content
15,921,905 members
Home / Discussions / C#
   

C#

 
AnswerRe: windows service scheduler Pin
Manas Bhardwaj19-Jun-07 22:10
professionalManas Bhardwaj19-Jun-07 22:10 
GeneralRe: windows service scheduler Pin
arkiboys19-Jun-07 22:31
arkiboys19-Jun-07 22:31 
GeneralRe: windows service scheduler Pin
Manas Bhardwaj19-Jun-07 22:35
professionalManas Bhardwaj19-Jun-07 22:35 
GeneralRe: windows service scheduler Pin
arkiboys19-Jun-07 22:37
arkiboys19-Jun-07 22:37 
GeneralRe: windows service scheduler Pin
Manas Bhardwaj19-Jun-07 22:39
professionalManas Bhardwaj19-Jun-07 22:39 
GeneralRe: windows service scheduler Pin
arkiboys19-Jun-07 22:58
arkiboys19-Jun-07 22:58 
GeneralRe: windows service scheduler Pin
arkiboys19-Jun-07 23:04
arkiboys19-Jun-07 23:04 
GeneralRe: windows service scheduler Pin
SimulationofSai20-Jun-07 0:18
SimulationofSai20-Jun-07 0:18 
You cannot run the exe and expect the windows service to start. Please wipe that idea off.
Create a batch file with the following line

net start yourservice
Again this assumes that the service is already installed and is in System32. If not you've to navigate to the path where your exe is and run the above command.

cd your path<br />
net start yourservice


You can then schedule this batch file to run at any desired time. The downside is that you need to stop the service manually too, so that it does not error out in the next scheduled start.

So another batch file, another scheduled task which runs after your start task.

net stop yourservice

Above all, I thought the whole point in creating a windows service was to do something constantly in the background. I reccomend putting in that timer in your service.



SG

AnswerRe: windows service scheduler Pin
Joseph Guadagno20-Jun-07 4:08
Joseph Guadagno20-Jun-07 4:08 
QuestionXAML extension question Pin
Super Lloyd19-Jun-07 21:44
Super Lloyd19-Jun-07 21:44 
QuestionData Encrypt and Decrypt? Pin
mimilaw19-Jun-07 21:35
mimilaw19-Jun-07 21:35 
AnswerRe: Data Encrypt and Decrypt? Pin
Sathesh Sakthivel19-Jun-07 21:55
Sathesh Sakthivel19-Jun-07 21:55 
QuestionHow to import ActiveX control in the form? [modified] Pin
$uresh $hanmugam19-Jun-07 21:24
$uresh $hanmugam19-Jun-07 21:24 
AnswerRe: How to import ActiveX control in the form? Pin
Mali Perica19-Jun-07 21:44
Mali Perica19-Jun-07 21:44 
QuestionRegd Serialization Pin
vikasviswan19-Jun-07 21:10
vikasviswan19-Jun-07 21:10 
AnswerRe: Regd Serialization Pin
Sandeep Akhare19-Jun-07 21:24
Sandeep Akhare19-Jun-07 21:24 
AnswerRe: Regd Serialization Pin
Sathesh Sakthivel19-Jun-07 21:34
Sathesh Sakthivel19-Jun-07 21:34 
AnswerRe: Regd Serialization Pin
PandemoniumPasha20-Jun-07 0:21
PandemoniumPasha20-Jun-07 0:21 
QuestionRe: Regd Serialization Pin
vikasviswan20-Jun-07 0:30
vikasviswan20-Jun-07 0:30 
Questionmouse hook [modified] Pin
trecee_jhnsn19-Jun-07 20:27
trecee_jhnsn19-Jun-07 20:27 
Questiongetting data via DialUp Pin
Assaf Dar19-Jun-07 19:30
Assaf Dar19-Jun-07 19:30 
QuestionMDI Closing Statement Pin
*** AAMP ***19-Jun-07 19:16
*** AAMP ***19-Jun-07 19:16 
AnswerRe: MDI Closing Statement Pin
Nouman Bhatti19-Jun-07 20:20
Nouman Bhatti19-Jun-07 20:20 
GeneralRe: MDI Closing Statement Pin
*** AAMP ***19-Jun-07 22:34
*** AAMP ***19-Jun-07 22:34 
AnswerRe: MDI Closing Statement [modified] Pin
gumi_r@msn.com19-Jun-07 23:54
gumi_r@msn.com19-Jun-07 23:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.