gcue Posted July 2, 2008 Share Posted July 2, 2008 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) Link to comment Share on other sites More sharing options...
weaponx Posted July 2, 2008 Share Posted July 2, 2008 Why would you try dllcall from a shared folder like that? You should be calling it from the local drive. Link to comment Share on other sites More sharing options...
gcue Posted July 2, 2008 Author Share Posted July 2, 2008 im trying to check the uptime of a remote machine ;-) Link to comment Share on other sites More sharing options...
weaponx Posted July 2, 2008 Share Posted July 2, 2008 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... Link to comment Share on other sites More sharing options...
gcue Posted July 2, 2008 Author Share Posted July 2, 2008 oooo so theres no way to get a remote pc's uptime? Link to comment Share on other sites More sharing options...
weaponx Posted July 2, 2008 Share Posted July 2, 2008 You use WMI:#126042 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now