Category : vbscript

echo WScript.Echo(DateDiff("s", "01/01/1970 00:00:00", Now())) > %temp%time.vbs for /f "tokens=*" %%a in (‘ cscript //nologo %temp%time.vbs ‘) do set current_date=%%a del %temp%time.vbs echo VBS Date is : %current_date% set compare_to_date=1634840250 IF %current_date% LEQ %compare_to_date% ( echo it is older than 7 days ) So I am using Windows 10 batch file to compare two unix ..

Read more