Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
Computer Hope forum e-mail issues and down time
0 Members and 1 Guest are viewing this topic.
I just wnt to know is there a possibility to create 1 bat file that would show time what left to 6 hours ,and that could be counting down ?
dtmSec = DateDiff("s", Now, "11/04/2005 05:00:00 PM")dtmMin = dtmSec / 60dtmHours = dtmMin / 60dtmDays = dtmHours / 24lngFullDays = Int(dtmDays)lngFullHours = Int(dtmHours)lngFullMin = Int(dtmMin)intHours = Int((dtmDays - lngFullDays) * 24)intMin = Int((dtmHours - lngFullHours) * 60)intSec = CInt((dtmMin - lngFullMin) * 60)wscript.echo "Days: " & lngFullDays & " Hours: " & intHours & " Minutes: " & intMin & " Seconds: " & intSec