Hack Forums
[.NET] [TUT] System Information [TUT] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [TUT] System Information [TUT] (/showthread.php?tid=2182039)



[TUT] System Information [TUT] - master4all - Feb 5, 2012

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() & ".")

🤝🤝🤝🤝🤝



* - xXxBrendanxXx - Oct 12, 2012

Sweet! I will be using these in my project, Thanks.


* - pulzeultra2000 - Oct 13, 2012

thank alot for this op! Very usefull


* - logging*machine - Oct 13, 2012

I don't find this too useful, but okay.


* - nathan72389 - Oct 13, 2012

this is not a tutorial, its more like ..

"look what i found"


* - Cody8295 - Oct 13, 2012

Mind like posting the source? Because

[Image: bNDNL.png]


* - Malloc - Oct 13, 2012

This is not a tutorial, in fact I bet you copy and pasted these sections of code from another resource without giving credit.


* - Pussy Cat - Oct 13, 2012

(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?427583-Notify-Icon-RESOLVED


* - Ashes - Oct 13, 2012

I am pretty sure I've seen this somewhere before, but thanks anyways! :)