emperorjw Posted June 18, 2015 Posted June 18, 2015 Hii use on my office a Win7prof SP1 englisch and at home Win7Ultimate Sp1 Ger.IF i use the sample from AutoIT Help - $aInfo = _Net_Share_StatisticsGetWrk(@ComputerName) on my office, i get all values.by using at home the same sample script, i got the no values.Also for "Workstation/Server" doesnt work the sample script's by AutoIT Help Made i something wrong or have anyone a clue what can i do ? ThanksRegards JW
Bert Posted June 18, 2015 Posted June 18, 2015 may we see your script please? The Vollatran project My blog: http://www.vollysinterestingshit.com/
emperorjw Posted June 18, 2015 Author Posted June 18, 2015 (edited) expandcollapse popup#include <NetShare.au3> #include <Process.au3> $aInfo = _Net_Share_StatisticsGetWrk(@ComputerName) $trigger1 = 0 $start1 = $aInfo[1] $stop1 = $aInfo[1] MsgBox(4096, "Initialisiere...","Initialisiere and wait 5min" & @CRLF & "start1: " & $start1 & @CRLF & "stop1: " & $stop1 & @CRLF & "please Waiting .....",2) warte1() Local $i = 0 Do $aInfo = _Net_Share_StatisticsGetWrk(@ComputerName) $stop1 = $aInfo[1] MsgBox(4096, "Zähler...","Zähler: " & $i & @CRLF & "1Bytes received ..........: " & $aInfo[1] & @CRLF & "start1: " & $start1 & @CRLF & "stop1: " & $stop1 & @CRLF,2) If $start1 = $stop1 Then $trigger1 = $trigger1 + 1 EndIf If $start1 <> $stop1 Then $aInfo = _Net_Share_StatisticsGetWrk(@ComputerName) $start1 = $aInfo[1] $stop1 = $aInfo[1] EndIf If $trigger1 = 2 Then ConsoleWrite(@CRLF & "Programm terminated" & @CRLF) Exit 0 EndIf ;~ ------------- Exit(0) EndIf warte1() $i = $i + 1 ; Or $i += 1 can be used as well. ConsoleWrite("-----------------------------------------------------------" & @CRLF) Until $i = 99999999 ; Increase the value of $i until it equals the value of 10. func warte1() ConsoleWrite("5min please Waiting.... // ") sleep(30000) ConsoleWrite("4.30min please Waiting.... // ") sleep(30000) ConsoleWrite("4min please Waiting.... // ") sleep(30000) ConsoleWrite("3.30min please Waiting.... // ") sleep(30000) ConsoleWrite("3min please Waiting.... // ") sleep(30000) ConsoleWrite("2.30min please Waiting.... // ") sleep(30000) ConsoleWrite (@CRLF) ConsoleWrite("2min please Waiting.... // ") sleep(30000) ConsoleWrite("1.30min please Waiting.... // ") sleep(30000) ConsoleWrite("1min please Waiting.... // ") sleep(30000) ConsoleWrite("30sec please Waiting.... // ") sleep(10000) ConsoleWrite("20sec please Waiting.... // ") sleep(10000) ConsoleWrite("10sec please Waiting.... ") sleep(10000) ConsoleWrite (@CRLF) EndFuncthe script....Thanks Edited June 18, 2015 by emperorjw
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