Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[TUT] System Information [TUT]

Hi HF,

Time Since Last Reboot
Code
Dim timeSinceLastRebootMinutes As Double = My.Computer.Clock.TickCount / 1000 / 60
        MsgBox("It has been " & CInt(timeSinceLastRebootMinutes).ToString() & " minutes since your last reboot.")

OS Information
Code
MsgBox(My.Computer.Info.OSFullName & vbCrLf & "Version " & My.Computer.Info.OSVersion)

Time Zone
Code
If (TimeZone.CurrentTimeZone.IsDaylightSavingTime(DateTime.Now)) Then
            MsgBox("The current time zone is: " & TimeZone.CurrentTimeZone.DaylightName & ".")
        Else
            MsgBox("The current time zone is: " & TimeZone.CurrentTimeZone.StandardName & ".")
        End If

Framework Version
Code
MsgBox("Framework Version: " & Environment.Version.ToString() & ".")

🤝🤝🤝🤝🤝
Sweet! I will be using these in my project, Thanks.
thank alot for this op! Very usefull
I don't find this too useful, but okay.
this is not a tutorial, its more like ..

"look what i found"
Mind like posting the source? Because

[Image: bNDNL.png]
This is not a tutorial, in fact I bet you copy and pasted these sections of code from another resource without giving credit.
(Oct 13, 2012 04:49 PM)Malloc Wrote:  This is not a tutorial, in fact I bet you copy and pasted these sections of code from another resource without giving credit.

Yup, he actually copied that from a 6 years old thread.
http://www.vbforums.com/showthread.php?4...n-RESOLVED
I am pretty sure I've seen this somewhere before, but thanks anyways! :)


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Java] by PDGLOBALJan 11, 2020 12:01 PM 2 231 Jan 11, 2020 12:01 PM
Last Post: PDGLOBAL
[C#] by chrizatorFeb 4, 2018 09:23 AM 12 548 Feb 4, 2018 09:23 AM
Last Post: chrizator
[Java] by MαximApr 12, 2017 05:26 AM 3 259 Apr 12, 2017 05:26 AM
Last Post: Weco