Copy to local.bat
for instructions to use see Copying down a clean version of CCMDB.accdb
copy_to_local.bat is a script that copies the most current copy of CCMDB.accdb from Regional Server\Programs\Master (full address: \\ad.wrha.mb.ca\WRHA\REGION\SHARED\ICU_DATA_COLLECTION\Programs\Master
) to the PC/laptop from which it is run.
Because H6 laptop is set up with two copies of ccmdb, it uses copy_to_local-H6.bat instead.
File Location
The copy_to_local.bat file is located on the Regional Server at:
- Regional Server\Programs\Master\copy_to_local.bat (full address:
\\ad.wrha.mb.ca\WRHA\REGION\SHARED\ICU_DATA_COLLECTION\Programs\Master\copy_to_local.bat
)
What the File Does
- everything copy_to_local.bat does is logged to the log file fixlog2.txt in the same directory as the batch file.
- Steps the file does:
- copy newest version of CCMDB.accdb to local
- copy new shortcut for CCMDB to the current user's desktop (ideally that would be the public user one, but we don't have rights to it)
- copy down a new version of backup.bat
Additional Notes
Pagasa and Julie use this to copy the latest version of the CCMDB program to their local PC's when they need to open a collector's backup, for example to Re-sending data.
Log
- 2019-09-29 - added line to copy new backup.batto the two places where the shortcut and backup.bat might look for it, and testing for those folder with if exist
- 2019-09-24 - added a better success msg to the end of the batch file
- 2019-09-18 - changed CCMDB.mdb to CCMDB.accdb