• 0

bat creation to download and replace files


Question

Hello everyone,

I would like to make a .bat file that will download the latest version of Teamviewer Quick Support and replace it with one in existence.

It would:

1. Delete the current desktop instance
2. Download the latest version from my website or the Teamviewer website. 
3. Move it from the Downloads folder to the Desktop.

This is for my most senior parishioners at church who seem to have troubles navigating websites to download the latest quick support. I handle support for the church (just helping out).

Anyone know how one would do this?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

PatchMyPc work for TeamviewerQS? Or just Full?

 

I am working on a solution for him now. 

 

Posting back here when done.

 

Ok create a batch file, with the following contents. Name it TVUpdate.bat or similar and save it to the desktop.

 

@ECHO OFF
del %USERPROFILE%\DESKTOP\TeamViewerQS.exe /Q
c:\windows\wget.exe https://download.teamviewer.com/download/TeamViewerQS_en.exe --no-check-certificate
copy c:\windows\TeamViewerQS.exe %USERPROFILE%\DESKTOP

Then download wget and it's dependencies

WGet - http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-bin.zip

Depends - http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-dep.zip

 

Extract them, and copy the wget.exe and .dll files from both sub folders "binary" folders to somewhere like c:\windows or c:\windows\system32

 

Once you do that you will need to modify the code paths above to point to the path that you placed it in, change c:\windows\wget.exe to maybe c:\windows\system32\wget.exe - or wherever you put it.

 

Then run the batch file to test it.

 

If you don't want to grab all the files manually and make the batch file, here is a link with everything all put together - https://www.dropbox.com/s/n6go1st8blxwjtk/ts-qs-updater.zip?dl=1

 

Put the batch file on the desktop, and the .exe/dll files in c:\windows

Edited by xendrome
  • Like 3
Link to comment
Share on other sites

  • 0

^ I honestly don't know if Patch My does QS or just regular, but your batch file should do the trick as well!

Link to comment
Share on other sites

  • 0
12 hours ago, xendrome said:

Ok create a batch file, with the following contents. Name it TVUpdate.bat or similar and save it to the desktop.

Or, since Somnus would be doing the initial setup on the computer, could he not put the .bat file somewhere like Windows and then set the task scheduler to run the .bat automatically once a day or something? I would say put it under the startup folder but that would work with the assumption that the computer gets restarted often. Just a thought, it would save the parishioners doing anything other than launching TeamviewerQS. But maybe I'm missing something.

Link to comment
Share on other sites

  • 0

The other tweak I would make is to put the files in their own directory C:\Get or something.  Then add that directory to the path so it would be self contained and not have a possible problem with Windows.   

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now