I have a need to update a main batch (.cmd) file, sub-scripts, and folders when out of date. The batch is part of an internal process that collects information off of Windows 2003, 2008 & 2012. We are using batch and a little VBS because it works on all servers that we have on our environment. We cannot install anything or utilize any tools that modify the registry. As this task was limited to windows 2003 and a few 2008 servers, an extensive process was not needed. Our success has initiated the task of doing the same on all of our servers world wide. These servers do not have access to anything outside of the coperate Intranet without considerable red tape.
Basicly, I would like to set up some sort of version checking that continues to run the main script if all scripts and sub-scripts are up to date ... OR ... if the main script sees that something (including itself) is older than the latest master (globally accessable location), an update of the scripts/files/folders is executed.
I have made a couple attempts at this by trying to "START" a secondary .cmd in a TEMP folder that calls for the new files to be downloaded when the version indicated in the main script does not match the version indicated in a text file on the "master" server.
I realize there are many apps out there that can do this specific thing but I have been told that I will not get authorization to install any of these. I have been told that I will soon be able to do this from PowerShell, but this may be 5-6 months away. I must start on Monday (17 May 2016). I have run out of time and I have waited too long to reach out for help. Soooo ... please help.