Hi, I am tryng to setup a windows Schedule service...
# cfml-beginners
g
Hi, I am tryng to setup a windows Schedule service to restart cf server, in the bin directory, all i can see is the cfstart.bat, isn't there any cfrestart.bat file, and if i have to use cfstart.bat, is its working, it will restart again ? and while i was testing the cfstart.bat, i noticed it does not close the cmd after it starts, so how does windopws schedulr can close that cmd, do i need add some commands in arguments?
r
You should always run the cfstop.bat first and then the cfstart.bat to restart the server manually.
g
but how to do that in same one single windows schedular
and after stop and start how to close the cmd
r
The scheduler will just run the command in the background so there will be no window to close. You can also run multiple actions (commands) in a single scheduled task. The Microsoft website has really good documentation on it's use.
g
So when I execute manually it shows cmd prompt and when it runs auto it will run silently and no cmd popup Correct
r
Yes, if you just run the bat file.
g
I am setting the bat file which is cfstart.bat file in windows schedular task So I think you said when I manually trigger the task it shows me cmd prompt but if It happens automatically It will do in backend and there will no popup
a
The whole thing kinda begs the question a bit. Why are you wanting to restart your CF server on a regular basis?
2
r
I don't use cfstart.bat but yes it should unless Adobe is doing something odd. Did you look at Microsoft's documentation? There are a number of options that gives you as well.
g
i used net start and stop
1