Jump to content

Recommended Posts

Posted

Hi,

I'm trying to create a timer than runs on the first Friday of every month. I need it to run my BAT file only once. So most of the time, this script just loops waiting for this time period. Perhaps someone can suggest a better way.

While 1

If @WDAY = 6 And @MDAY <= 7 And @HOUR = "13:00" Then

ShellExecuteWait("test.bat")

EndIf

WEnd

Thanks

Posted

Hi,

I'm trying to create a timer than runs on the first Friday of every month. I need it to run my BAT file only once. So most of the time, this script just loops waiting for this time period. Perhaps someone can suggest a better way.

While 1

If @WDAY = 6 And @MDAY <= 7 And @HOUR = "13:00" Then

ShellExecuteWait("test.bat")

EndIf

WEnd

Thanks

Thanks for the suggestions; however, I was hoping to gain experience working with loops and was thinking of making this a service.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...