Question : Win32_ScheduledJob syntax question

I'm trying to use the below code to create a scheduled task on a remote computer. However, I'm having trouble finding what the syntax is for the schedule. I got that 012500 is for 1:25, but what is the ".000000-420" for? I'd like to also be able to set the scheduled task to run only once and then delete. Anyone know what it is or where I can go to find out?

Thanks.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" _
    & strcomputer & "\root\cimv2")
        objNewJob = objWMIService.Get("Win32_ScheduledJob")
        errJobCreated = objNewJob.Create _
            ("C:\temp\reboot.vbs", "********012500.000000-420", _
                True, 4, , True)
        If errJobCreated <> 0 Then
            MsgBox(errJobCreated.ToString)
        Else
            MsgBox("Task created")
        End If

Answer : Win32_ScheduledJob syntax question

There is a specific syntax that Windows Management Instrumentation (WMI) uses for the date format:

http://msdn.microsoft.com/en-us/library/aa393687(v=VS.85).aspx

http://www.aspfree.com/c/a/Windows-Scripting/Working-with-Dates-in-WMI/1/

Random Solutions  
 
programming4us programming4us