Hi there. First of all, apologies if I have posted this in the incorrect sectiuon.
On to my question. I have a script, from https://www.symantec.com/connect/downloads/script-download-intelligent-updater-ftpsymanteccom?cid=11849561#comment-11849561 that downloads the latest updates.
What I would like is to automate it as much as possible in as much that once the PC is up & running, it automatically downloads, runs the latest updates and after the update has been installed, deletes the downloaded files.
With my limited knowledge, my parents have me as their one person IT support! Anything that can simplify the operation of the PC for them would be a boon; this would be one less regular, fiddly but important task for them to have to remember.
Thanks in advance!
The script is:
@echo off
set dir=C:\SymantecUpdates
forfiles /P %dir% /S /M *.exe /D -3 /C "cmd /c del @path"
cd %dir%
echo Start > log64.txt
date /T >> log64.txt
time /T >> log64.txt
if exist _.ftp64 del _.ftp64>_.ftp64 echo open ftp.symantec.com>>_.ftp64 echo anonymous>>_.ftp64 echo anonymous>>_.ftp64 echo cd AVDEFS/symantec_antivirus_corp/>>_.ftp64 echo bin>>_.ftp64 echo prompt>>_.ftp64 echo dir *-core3sdsg2v5i64.exe>>_.ftp64 echo bye
for /f "tokens=9" %%i in ('ftp -s:_.ftp64'
) do (
set file=%%i
)>_.ftp64 echo open ftp.symantec.com>>_.ftp64 echo anonymous>>_.ftp64 echo anonymous>>_.ftp64 echo cd AVDEFS/symantec_antivirus_corp/>>_.ftp64 echo bin>>_.ftp64 echo prompt>>_.ftp64 echo mget %file%>>_.ftp64 echo bye
echo File %file% >> log64.txt
ftp -s:_.ftp64
del _.ftp64 >nul
@echo. >> log64.txt
echo End >> log64.txt
date /T >> log64.txt
time /T >> log64.txt
exit