vbs教程 用VBS讀取系統(tǒng)當(dāng)前時(shí)間?
用VBS讀取系統(tǒng)當(dāng)前時(shí)間?獲取當(dāng)前時(shí)間:代碼如下:currenttime=hour(now)&“:”&minute(now)&“:”&second(now)M=“current
用VBS讀取系統(tǒng)當(dāng)前時(shí)間?
獲取當(dāng)前時(shí)間:代碼如下:currenttime=hour(now)&“:”&minute(now)&“:”&second(now)M=“current time”& currenttime msgbox M獲取當(dāng)前日期方法1:代碼如下:currentdate1=date()msgbox currentdate1獲取當(dāng)前日期方法2:代碼如下:currentdate2=年(現(xiàn)在)& “-”& “-”& “-月(現(xiàn)在)& “-”& “-今天(現(xiàn)在)msgbox currentdate2