"John" <> wrote in message
news:8ED1B34A-929F-4907-B689-...
> Hi Pegasus,
>
> Sorry for the late response. Actually the script does not seem to have
> problems, when I copy it for the second time to do a test in a diferent
> server the script simply worked
. So I guess that probably the mistake
> was
> mine when copying those lines.
>
> What is your opinion on Al's suggestion? Should I make the change?
>
> I'm thinking in conver it to an exe file, do you recommend any software to
> do this? Will the users be able to revert it back to vbs using anyother
> software?
>
> Thank you again.
Al's suggestion gets around the human problem of not always remembering
which way the DateDiff function works. He is in good company with this
problem . . . His proposal turns all negative numbers into positive ones,
thus making it irrelevant which argument comes first in the DateDiff
function. Since your code works (which does not surprise me because I tested
it before posting!), making the change will make no difference. You can
therefore do as you please.