Copy to local.bat: Difference between revisions
Jump to navigation
Jump to search
Ttenbergen (talk | contribs) |
Ttenbergen (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
'' for instructions to use see [[Copying down a clean version of CCMDB.accdb]] | '' 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 {{Regionalserver|Programs\Master}} to the PC/laptop from which it is run. | |||
==File Location== | ==File Location== | ||
Line 6: | Line 7: | ||
==What the File Does== | ==What the File Does== | ||
copy_to_local.bat is | * 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== | ==Additional Notes== |
Revision as of 11:38, 2019 October 3
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.
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