Sunday, August 27, 2023

Timing Commands

'Please uncomment the below lines and use it accordingly 

'Wscript.Echo Now

'Wscript.Echo "Year: " & DatePart("yyyy" , Now)

'Wscript.Echo "Quarter: " & DatePart("q", Now)

'Wscript.Echo "Month: " & DatePart("m" , Now)

'Wscript.Echo "Day of Year: " & DatePart("y" , Now)

'Wscript.Echo "Day: " & DatePart("d" , Now)

'Wscript.Echo "Weekday: " & DatePart("w"  , Now)

'Wscript.Echo "Week of Year: " & DatePart("ww" , Now)

Wscript.Echo "Hour: " & DatePart("h", "10:15:20")

'Wscript.Echo "Minute: " & DatePart("n" , Now)

'Wscript.Echo "Seconds: " & DatePart("s"  , Now)

Click here to get more VBS

Script for OS                                    Script for Registries                Script for Addin

Script for File Operations

Script for WindowsService

No comments:

Post a Comment

DLL Register

  'On Error Resume Next dim objRun,objCmd,quote,path,fname msgbox"Hi Sh1" quote=chr(34) Set objRun = CreateObject(...