HI,
I am trying to figure the best way to do this:
I need to run a command every 30 minutes on an NT server from 8am - 7pm. And then every 2 hours on the weekend. I have a batch that when called will run the command and then run again every x minutes.
With scheduler I can run an AT command which I am sure will start off the whole process. So I am trying to decide if I should do an Every with the AT command (the problem with this would be I would have ALOT of commands which I don't) or use the AT command to run a batch containing the command which will run itself every 30 minutes. The problem with the latter is it would never stop though unless I can figure a way to cut it off with another AT command somehow or a command within the batch itself (maybe a For/If? I know there is an IF and string comparison I can run so then I could check value of X if X doesn't equal 24 it runs the exe but if it does then the batch must exit; I know the syntax in typical program language but not sure how to do it exactly in batch-do I need to declare vars or strings, anyone have syntax on that I can include in my batch? So in a nutshell I need to have the exact syntax on how to do this in a batch command.)
Any suggestions, examples or even a better way to accomplish this would be appreciated.
Thanks,
Dan
I am trying to figure the best way to do this:
I need to run a command every 30 minutes on an NT server from 8am - 7pm. And then every 2 hours on the weekend. I have a batch that when called will run the command and then run again every x minutes.
With scheduler I can run an AT command which I am sure will start off the whole process. So I am trying to decide if I should do an Every with the AT command (the problem with this would be I would have ALOT of commands which I don't) or use the AT command to run a batch containing the command which will run itself every 30 minutes. The problem with the latter is it would never stop though unless I can figure a way to cut it off with another AT command somehow or a command within the batch itself (maybe a For/If? I know there is an IF and string comparison I can run so then I could check value of X if X doesn't equal 24 it runs the exe but if it does then the batch must exit; I know the syntax in typical program language but not sure how to do it exactly in batch-do I need to declare vars or strings, anyone have syntax on that I can include in my batch? So in a nutshell I need to have the exact syntax on how to do this in a batch command.)
Any suggestions, examples or even a better way to accomplish this would be appreciated.
Thanks,
Dan