cdnnewbie Posted May 12, 2004 Share Posted May 12, 2004 I am working on a script to deploy the antivirus updates depending on the date of the file compared against the machine date and time. I know that you could run into problems cause if the date and time on the machine are wrong then you would be all messed up... but besides that point how would you go about doing the check.... [quote]He who smiles in a crisis has found someone to blame[/quote] Link to comment Share on other sites More sharing options...
Helge Posted May 12, 2004 Share Posted May 12, 2004 (edited) From the helpfile :@MDAY - Current day of month. Range is 01 to 31@MON - Current month. Range is 01 to 12@YEAR - Current four-digit yearSo then you can just compare the date (use the macros listed above)with the filename of the antivirus update..Good luck ! Edited May 12, 2004 by Helge Link to comment Share on other sites More sharing options...
scriptkitty Posted May 12, 2004 Share Posted May 12, 2004 if on a network, you can update the clock with Net time. You can also check, or set the time over the internet. The syntax of this command is: NET TIME [\\computername | /DOMAIN[:domainname] | /RTSDOMAIN[:domainname]] [/sET] [\\computername] /QUERYSNTP [\\computername] /SETSNTP[:ntp server list] AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now