AW: MS-DOS Systemzeit nach Excel importieren
31.03.2009 17:05:06
ransi
HAllo
Ich habe keine Ahnung ws du hiermit:
wie man aus MS DOS die aktuelle Zeit..
meinst.
Seit wann angemeldet geht auch so:
Public Sub test()
Dim LoginProfiles
Dim Profil
Dim a
Set LoginProfiles = GetObject("winmgmts:").InstancesOf("Win32_NetworkLoginProfile")
For Each Profil In LoginProfiles
a = Profil.lastlogon
If a <> "" Then
MsgBox Profil.Name & vbCrLf & _
Mid(a, 7, 2) & "." & Mid(a, 5, 2) & "." & Mid(a, 1, 4) & " " & _
Mid(a, 9, 2) & ":" & Mid(a, 11, 2) & ":" & Mid(a, 13, 2)
End If
Next
End Sub
ransi
ransi