Automatic update for Batch script !

Discussion in 'Windows 10' started by Yasser Da Silva, Aug 28, 2015.

  1. Yasser Da Silva

    Yasser Da Silva MDL Addicted

    Mar 15, 2015
    519
    2,516
    30
    Hello
    i am working on my batch script so hard
    [Script] Win 10 Toggle Tweaker (V1.6) -Official thread-

    but the problem is that a lot of people is still using V1.1 or V1.2
    so i want to make the batch file check for updates automatically
    i have this idea that i was using in VB.Net :
    make a variable and make it's value the version of the current file
    then create a TXT file that contain the newer version of the script and upload it
    now when the script starts it downloads the TXT file and compare it with the variable value inside the script
    if the Ver in the TXT file is newer the the Ver in the script
    the script opens a link

    any ideas how to do this in BAT
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. wk-952

    wk-952 MDL Member

    Sep 2, 2012
    114
    281
    10
    #2 wk-952, Aug 29, 2015
    Last edited by a moderator: Apr 20, 2017
  3. Yasser Da Silva

    Yasser Da Silva MDL Addicted

    Mar 15, 2015
    519
    2,516
    30
    nice idea but it's not perfect
    because i use Mediafire as the script original link
    and in Mediafire i can see Download numbers and it's so important to compare the success of each version
    *I created a code for this and it's working fine ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Yasser Da Silva

    Yasser Da Silva MDL Addicted

    Mar 15, 2015
    519
    2,516
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...