Jump to content

epo

Members
  • Posts

    11
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

epo's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Checked aldy & nothing wrong with it... Nope... It's physical server running on Win 2008...
  2. U mean open windows explorer & send F5 & minimize it back ?
  3. Hi Below is the code WinMinimizeAll() Local $aaa = FileGetSize ( "D:\Datacap\Taskmaster_logs\tms.log" ) MsgBox($MB_SYSTEMMODAL, "", ByteSuffix($aaa)) Func ByteSuffix($iBytes) Local $iIndex = 0, $aArray = [' bytes', ' KB', ' MB', ' GB', ' TB', ' PB', ' EB', ' ZB', ' YB'] While $iBytes > 1023 $iIndex += 1 $iBytes /= 1024 WEnd Return Round($iBytes) & $aArray[$iIndex] EndFunc ;==>ByteSuffixNot sure script prob or autoit prob... Scenario is like this :- a) Open windows explorer & browse to D:\Datacap\Taskmaster_logs b) Check tms.log size (ie : 100mb) c) Minimize windows explorer d) Run above script & msgbox shows 100mb e) Let the taskmaster appl run for few days to increase the log f) Run above script again after few days & msgbox still shows 100mb g) Maximize windows explorer then in a blink, suddenly log size increase to 200mb h) Minimize windows explorer i) Run above script & msgbox shows 200mb Questions :- 1) To get the currect log size via $filegetsize, windows explorer need to be refreshed or closed ? 2) Any additional script to add to refresh the log size in $filegetsize ? Thx in advance...
  4. Yes I chg it, noted & thx...
  5. 1st script isn't working but 2nd one works... Many many thx...
  6. Hi Yes it's working when running in batch mode (batch.bat)...
  7. Hi I've batch file (backup.bat). It contains following command :- forfiles /p C:\inetpub\logs\LogFiles\W3SVC1 /m *.log /D -30 /C "cmd /c copy @file D:\Backup\BackupTemp" "C:\Program Files (x86)\7-Zip\7z.exe" a D:\Datacap\Taskmaster_logs\"%DATE:~7,2%.%DATE:~4,2%.%DATE:~10,4%-backup".zip D:\Datacap\Taskmaster_logs\tms.logNow want to translate to au3 file but failed... RunWait(@ComSpec & ' /k'& '"forfiles /p C:\inetpub\logs\LogFiles\W3SVC1 /m *.log /D -30 /C ""cmd /c copy @file D:\Backup\BackupTemp""') RunWait(@ComSpec & ' /k'& '""C:\Program Files (x86)\7-Zip\7z.exe"" a D:\Datacap\Taskmaster_logs\""%DATE:~7,2%.%DATE:~4,2%.%DATE:~10,4%-backup"".zip D:\Datacap\Taskmaster_logs\tms.log')Anyone can translate it to me ? Thx in advance...
  8. It's worked... Thx Not sure whether my script is correct or not but "WinSetState" isn't working. BTW, my office desktop is using IE8. Thx anyway...
  9. Hi Below is my script but how to run IE with maximize window ? Thx in advance... For $i = 137 To 140 Step 1 Local $oIE = _IECreate("https://172.25.70." & $i & ":9443/Workplace/") $oIE = _IEAttach("Sign") Local $bbb = _IEPropertyGet($oIE, "title") If $bbb = "Google1" Then MsgBox($MB_SYSTEMMODAL, "IP " & $i, "Not OK") Send("!{F4}") Else MsgBox($MB_SYSTEMMODAL, "IP " & $i, "OK") Send("!{F4}") EndIf Next
  10. tq all... mission accomplished... While 1 $line = FileReadLine($file) If @error = -1 Then ExitLoop $result = StringSplit($line, ":") $ipaddres = $result[1] MsgBox(0, "Line read:", $ipaddres) Wend
  11. i want to read a few proxy line in file.txt but stop it before ':' symbol 111.222.333.444:8080 11.2.3.44:80 111.22.33.44:8181 so the result should be 111.222.333.444 11.2.3.44 111.22.33.44 i don't have a problem if the file look like this 111.222.333.444:8080 131.222.373.484:8080 141.252.353.494:8080 how to read in autoit? tqvm.
×
×
  • Create New...