suchty112

updatescript

Aug 9th, 2011
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version := 0.71
  2.  
  3. UrlDownloadToFile, http://www.autohotkey.net/~Benjamin_Price/medic/version.txt, version.txt
  4. FileRead, newver, version.txt
  5. FileDelete, version.txt
  6.  
  7. if (version < newver)
  8. {
  9.    newververfügbar := 1
  10.       UrlDownloadToFile, http://www.autohotkey.net/~Benjamin_Price/medic/medic.exe , %A_ScriptName%.new
  11.       BatchFile=
  12.       (
  13.       Ping 127.0.0.1
  14.       Del "%A_ScriptName%"
  15.       Rename "%A_ScriptName%.new" "%A_ScriptName%"
  16.       cd "%A_ScriptFullPath%"
  17.       Del Update.bat
  18.    "%A_ScriptName%"
  19.       )
  20.       FileDelete,update.bat
  21.       FileAppend,%BatchFile%,update.bat
  22.       MsgBox, Der Keybinder wird geupdatet. Der Keybinder ist sofort wieder funktionsbereit. Bitte starte den Keybinder gleich erneut.
  23.       Run,update.bat,,hide
  24.       ExitApp
  25. }
  26. else
  27. {
  28.    newververfügbar := 0
  29. }
Advertisement
Add Comment
Please, Sign In to add comment