Updating User's Executables Automatically

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Trigg
Posts: 97
Joined: 07 Apr 2017, 19:43

Updating User's Executables Automatically

26 Jun 2017, 07:53

Good morning guys!

I have a question on what route to take. I have an executable file that I uploaded into my company's (shared) X drive for multiple users to access. I'm trying to automatically update this for everyone's computers instead of consistently emailing/reminding them there is a new update.

I tried doing just a simple Run script saved to their desktops that will open the .exe in the X drive so I can update the file. Obviously because it is being used by one (or more) users I cannot update the file unless I rename it.

Is there an accurate route I can take in order to update my script universally with little hassle?

I was thinking about using FileCopy and downloading the script to a folder on the user's desktop, but it does not work :(

Code: Select all

FileCopy, X:\Shared\AHK.exe, C:\Desktop\AHK.exe
Run, C:\Desktop\AHK.exe
Thanks :)

EDIT:
Found out a quick fix. This works.

Code: Select all

FileDelete, C:\Desktop\AHK.exe
FileCopy, X:\Shared\AHK.exe, C:\Desktop\AHK.exe
Run, C:\Desktop\AHK.exe

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: songdg and 213 guests