Search found 6 matches

by Jerry Gilels
Fri Dec 12, 2003 6:29 pm
Forum: Technical / Scripting
Topic: How to: Make scripts start at the correct time every day?
Replies: 6
Views: 7857

How to: Make scripts start at the correct time every day?

Even after hangs or failures, has anyone developed a way to ensure that, after re-starting, MS will run the proper reiterative scripts at the correct times, instead of picking a time itself? It's also possible that I just don't know how to use the advanced section of the "Run When" part of the scrip...
by Jerry Gilels
Fri Nov 21, 2003 7:01 pm
Forum: Beginners
Topic: How do I pass a variable to a Run Program> statement?
Replies: 1
Views: 6962

How do I pass a variable to a Run Program> statement?

Isn't this the way?

Let>RP_WINDOWMODE=0

Day>the_day
Month>the_month
Year>the_year
Let>this_day=%the_month%%the_day%%the_year%
Run Program>c:\chkser.bat %this_day%

Let>RP_WINDOWMODE=1

???
by Jerry Gilels
Mon Oct 06, 2003 12:36 am
Forum: Technical / Scripting
Topic: Is there a way to do rounding or modulus?
Replies: 1
Views: 4519

Is there a way to do rounding or modulus?

Is there a way to do rounding or modulus?
by Jerry Gilels
Tue Sep 16, 2003 5:07 pm
Forum: Technical / Scripting
Topic: A script to derive the day of the year (001-365) ?
Replies: 5
Views: 8694

This one works like a charm...

Thanks. It works like a charm... Two things: 1. The date is dependent on your Windows regional settings. 2. The DayCount loop has to start with a value of 1. Finally, I almost used a flat file read approach, which also would have worked. But, your solution is simpler and more elegant. Does the read ...
by Jerry Gilels
Tue Sep 16, 2003 4:22 pm
Forum: Technical / Scripting
Topic: A script to derive the day of the year (001-365) ?
Replies: 5
Views: 8694

I don't have VB....

[quote="Captive"]Try this. :)VBSTART
Function DayOfYear
DayOfYear = Abs(DateDiff("d","01/01/" & Year(Now),Now))
End Function
VBEND

VBEval>DayOfYear,DayCount
MessageModal>Days so far this year : %DayCount%[/quote]
by Jerry Gilels
Tue Sep 16, 2003 2:56 pm
Forum: Technical / Scripting
Topic: A script to derive the day of the year (001-365) ?
Replies: 5
Views: 8694

A script to derive the day of the year (001-365) ?

Marcus once sent me a script to derive the day of the year in MacroScheduler. I had a, let's say, C-R-A-S-H a short time ago and lost many things. Once of them, this MacroScheduler scp. I do not have VB, so does anyone have a script that does this in a nice, understandable way?

Jerry.
Sign up to our newsletter for free automation tips, tricks & discounts