Help with VBScript date (1 Viewer)

Gasman

Enthusiastic Amateur
Local time
Today, 17:05
Joined
Sep 21, 2011
Messages
14,270
For my benefit please, what does this do?

Code:
Do until i > 0 Date()
 

isladogs

MVP / VIP
Local time
Today, 17:05
Joined
Jan 14, 2017
Messages
18,216
That was the line I picked up and why I asked if it actually worked
 

jocph

Member
Local time
Tomorrow, 00:05
Joined
Sep 12, 2014
Messages
61
I was hasty with the previous answer I did not try all possibilities. It seems it was doing the job too good that the backups are being done even before one week has passed.

Anyway, I simplified it and hope this I have it correct this time :oops:

Code:
'If at least one week has passed since last backup, do the backup on the first opportunity
dteCounter = dteCounter + 7

    IF Date() >= dteCounter Then
        BackupData()
    End If
 

Users who are viewing this thread

Top Bottom