Make more out of this version checker in *.vb?

Author Message
Thor.

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 9/25/2007
  • Status: offline
Make more out of this version checker in *.vb? Tuesday, September 25, 2007 3:14 AM (permalink)
0
Hello vbs.com. As you can see i am new to this forum. I am working on something i like to call "Thor tools" in batch just for the experiense and to share with friends.

I have tried some midifications on this pre-made script i found om a Norwegian forum but I can't make it deny the batch file when I want it. Like:
If I release a demo of Thor tools I want to control whenever they can use it or not just so I can "turn it off" at for example 1st october. Or to force them to update because of a "security risk" .
So my idea is to rewrite this one abit so it checks two textfiles. The first one is current (say "1.04") and the second one is the force to update (say "1,02" is dangerous).

The batch script is encrypted with "Quick Batch File Complier" by abyssmedia.com and this .vb file is included.

Set oShell = WScript.CreateObject("WSCript.Shell")
 
 Version = HTTPGetText("http://**/versjon/Versjon.txt")
 
 If Version = "0.5" Then
 Else
     If MsgBox("Version " & Version & " har kommet ut. Vil du laste ned denne?", _ 
     vbYesNo + vbQuestion, "Ny versjon") = vbYes Then
         oShell.Run "http://home.no.net/yoshigut/versjon/hente.txt"
     End if
 End If
 
 Function HTTPGetText(URL)
 
     Set oHTTP = WScript.CreateObject("Microsoft.XmlHttp")
 
     oHTTP.open "GET", URL, false
     oHTTP.send ""
 
     HTTPGetText = oHTTP.responseText
 
 End Function
 


I know this is wrong place but I dont have any ideas about what an .vb file is. As far as I know it could mean visualbasic, windows batch or something similar. So please, move it to the correct place instead of closing it :)
 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9