Consumer Products > Avast Free Antivirus / Premium Security (legacy Pro Antivirus, Internet Security, Premier) |
need Last Scan Time for LOGON.CMD |
<< < (3/3) |
Lisandro:
--- Quote from: dr.mow on March 31, 2005, 08:23:37 AM ---if any interested, let me know. --- End quote --- Can you teach me how to 'read' an avast.ini file value, change it, save the file, locate the file into different folders... I don't know about programming but I think it could help to make a GUI for changing hidden/advanced options into avast4.ini file. Thanks. |
dr.mow:
hello :D this is a example how i find out the string "TimeOfLastScan" in the avast.ini. i have hardcoded the $lesedatei. feel free to program a user-update field. the code is between SNIP/SNAP :) the sound of a shears. sorry, but for more detailed infos, take a look to the link where you can find the docs. http://www.autoitscript.com/autoit3/docs/ greets dr.mow ============ SNIP =================================== $lesefile = "" $lesedatei = "C:\Programme\Avast\DATA\avast4.ini" $vorhanden = 0 $treffer = "" $pruefstring = "TimeOfLastScan" ; ; avast4.ini datei im lesemodus oeffnen ; $lesefile = FileOpen($lesedatei, 0) ; ; Check if file opened for reading OK ; If $lesefile = -1 Then ;keinen hinweis an den user ;MsgBox(0, "Error", "Unable to open file.") Exit EndIf ; ; Read in lines of text until the EOF is reached ; While 1 $line = FileReadLine($lesefile) If @error = -1 Then ExitLoop $vorhanden = StringInStr($line, $pruefstring) If $vorhanden <> 0 Then $treffer = $line Exitloop EndIf Wend FileClose($lesefile) ============ SNAP =================================== |
Lisandro:
--- Quote from: dr.mow on April 01, 2005, 08:04:47 AM ---This is a example how i find out the string "TimeOfLastScan" --- End quote --- Thanks... I'll take a look later on how could I find something similar for my avast! Tweaker. |
Navigation |
Message Index |
Previous page |