Jump to content

magicboy

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by magicboy

  1. @Saunders You need to change line 65 from $s_CurrVer = 0;FileGetVersion($s_Au3Path & "\AutoIt3.exe") to $s_CurrVer = FileGetVersion($s_Au3Path & "\AutoIt3.exe") -magicboy
  2. Along the lines of what BasicOs said. If you want a script to learn from throw in some command line arguments for automating the download.
  3. @SvenP Thanks for the great code. It is way more that I was first looking for but now the think I will change my progect and make it even better. magicboy
  4. @ioliver Thanks for the info. I had completly forgot about "|find" I will use your idea and then use it to find the ip of the gateway. Thanls c:\ipconfig |find "10.24.35.70" > gateway.txt Again thanks
  5. Does anyone have a better solution to this problem? I am trying to get the default gateway for the computer that the script is run on. The only solution that I have found is to run the command line below and save the information to a file. c:\netsh interface ip show address Configuration for interface "Main" DHCP enabled: No IP Address: 10.24.29.9 SubnetMask: 255.0.0.0 Default Gateway: 10.24.35.70 GatewayMetric: 1 InterfaceMetric: 0 All I want to do is see if there is a default gateway and what it is.
  6. @jdeb Everything that I have tried to download has CompileAu3.exe with version 1.05 not 1.06. May want to check file version. Just for your information - magicboy
  7. @archrival Any chance of sharing this with use. I could really use this. If not, could you share how you got spybot to work without installing it. -magicboy
  8. @ Toppy Why not something like ... While 1 $file = FileFindNextFile($search) If $file <> "." AND $file <> ".." Then ; <> = Not Equal If @error Then ExitLoop MsgBox(4096, "File:", $file) EndIf WEnd Have not tested this but should put you in the right direction.
  9. @All Thanks for all the help. I was playing around and found that the following code works RunWait('"c:\program files\winrar\rar.exe" a "c:\_autoit scripts\backuputil\test.rar" "@c:\_autoit scripts\backuputil\rarfiles.lst"') Thanks for all the help
  10. @SlimShady Thanks for the sugestion but that still did not get it to work. It exibits the same behavor as the way I originally posted. A cmd window opens and closes and nothing happens.
  11. I am working the same sort of project. I cannot get rar.exe to work however. This is my code... RunWait(@ComSpec & " /c " & '"c:\program files\winrar\rar.exe" a "c:\_autoit scripts\backuputil\test.rar" "@c:\_autoit scripts\backuputil\rarfiles.lst"') If I open up a prompt and run "c:\program files\winrar\rar.exe" a "c:\_autoit scripts\backuputil\test.rar" "@c:\_autoit scripts\backuputil\rarfiles.lst" everything works fine. Anyone see a problem?
  12. Here is my solution to the problem with the help from this-is-me and a leson on mod() I came up with this. $temp = timerstop(0) $Daytemp = Int($Temp / 86400000) $HourTemp = Int(Mod($Temp , 86400000) / 3600000) $MinTemp = Int(Mod(Mod($Temp , 86400000) , 3600000) / 60000) $SecTemp = Int(Mod(Mod(Mod($Temp , 86400000) , 3600000) , 60000) / 1000) Msgbox(0,'Uptime', ' Days: ' & $DayTemp & @CRLF &_ ' Hours: '& $hourTemp & @CRLF &_ ' Minutes: ' & $MinTemp & @CRLF &_ ' Seconds: ' & $SecTemp) This is consistant with the times I am getting from the uptime command in windows. @this-is-me Thanks for pointing me in the right direction. -magicboy-
  13. For my script to work properly, I need to run it after the users has had a problem and restarted there computer. I was just using it to check to see if they had indeed restarted there computer like they were supposed to.
  14. I am new to autoit but if you can read the event log what about reading the times for when the event log starts. I think the Event ID is 6005 or 6009. This will only work for NT OS's but not 9X OS's.
  15. msb5150, I think I have found a bug in your uptime script. If you run it at 12 pm it shows that your system has been up for 23 hours, even if you have just recently restarted it. Will do some more testing on this and let you know what I find.
×
×
  • Create New...