Jump to content

Recommended Posts

Posted

once i run the script below, i cant run other functions within the same script

memory used up? i tried doing a dllclose but that didnt work.

any ideas?

$aTSB = DllCall ("\\" & $asset & "\c$\winnt\system32\kernel32.dll", "long", "GetTickCount")
$ticksSinceBoot = $aTSB[0]

dim $iHours, $iMins, $iSecs
_TicksToTime ( $ticksSinceBoot, $iHours, $iMins, $iSecs )

$iDays = int($iHours / 24)
$iHours = $iHours - ($iDays * 24)

$uptime = ($iDays& " days and "&$iHours &" hours, "&$iMins & " Minutes" )

    Local $aText[3] = ["Dashboard", @TAB & "Status", @TAB & @TAB & "Idle"]
    Local $aParts[3] = [200, 175, -1]
    $dSTATUS = _GUICtrlStatusBar_Create($dGUI, $aParts, $aText)

MsgBox(0, "Check Uptime", $asset_label & " has been up " & $uptime)
Posted

Why would you try dllcall from a shared folder like that? You should be calling it from the local drive.

Posted

im trying to check the uptime of a remote machine ;-)

Just because you are running or opening something from a share doesn't it mean it runs on the remote machine. You will only get your system's uptime...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...