Hello Forum,
I work as a system engineer on the pharma-company astrazeneca. I am currently working on a solution for a backup script since the script in the software that moves the files has stopped working and the vendor does not have a solution. I have worked very little in Vbscript and i do not have the skills to make this script so i am asking for the forums help.
Once everyday at 16:00 (4 pm) the script needs to copy 9 files from the local computer to a network disk. The files are named:
DG(date(year,month,day ex. 191103)(.MB file,.PX file and data base file)
EG(date(year,month,day ex. 191103)(.MB file,.PX file and data base file)
SG(date(year,month,day ex. 191103)(.MB file,.PX file and data base file)
An example of the nine files names from the third of november 2019: DG191103.DB, DG191103.MB, DG191103.PX, EG191103.DB, EG191103.MB, EG191103.PX,SG191103.DB, SG191103.MB, SG191103.PX
The files to be copied everyday has to be yesterdays files, since the files that are named today's date are not completed until new files are created. So the names of the files to be moved should be like DG(date-1).MB and so on.
I am grateful for any help.
Best regards
Hugo Kilander
I work as a system engineer on the pharma-company astrazeneca. I am currently working on a solution for a backup script since the script in the software that moves the files has stopped working and the vendor does not have a solution. I have worked very little in Vbscript and i do not have the skills to make this script so i am asking for the forums help.
Once everyday at 16:00 (4 pm) the script needs to copy 9 files from the local computer to a network disk. The files are named:
DG(date(year,month,day ex. 191103)(.MB file,.PX file and data base file)
EG(date(year,month,day ex. 191103)(.MB file,.PX file and data base file)
SG(date(year,month,day ex. 191103)(.MB file,.PX file and data base file)
An example of the nine files names from the third of november 2019: DG191103.DB, DG191103.MB, DG191103.PX, EG191103.DB, EG191103.MB, EG191103.PX,SG191103.DB, SG191103.MB, SG191103.PX
The files to be copied everyday has to be yesterdays files, since the files that are named today's date are not completed until new files are created. So the names of the files to be moved should be like DG(date-1).MB and so on.
I am grateful for any help.
Best regards
Hugo Kilander