Updt all.bat: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Regionalserver|Programs\Master\ | {{Regionalserver|Programs\Master\Updt_all.bat}} is a program that is used to roll out updates and changes to the [[CCMDB.mdb]] program files from: | ||
*{{Regionalserver|Programs\Master\}} | |||
to the location based folders on the: | |||
*{{Regionalserver|Programs}}<br> | |||
== Instructions== | == Instructions== | ||
Line 21: | Line 25: | ||
== Log File == | == Log File == | ||
*the log file includes a date, time and which CCMDB.mdb's have been updated successfully & those that were not updated because file is open and in use. | *the log file includes a date, time and which CCMDB.mdb's have been updated successfully & those that were not updated because file is open and in use. | ||
** Log File location: | ** Log File location: {{Regionalserver|Programs\Master\log.txt}} | ||
== Related Articles == | == Related Articles == |
Revision as of 16:08, 26 November 2013
Regional Server\Programs\Master\Updt_all.bat (full address: \\ad.wrha.mb.ca\WRHA\REGION\SHARED\ICU_DATA_COLLECTION\Programs\Master\Updt_all.bat
) is a program that is used to roll out updates and changes to the CCMDB.mdb program files from:
- Regional Server\Programs\Master\ (full address:
\\ad.wrha.mb.ca\WRHA\REGION\SHARED\ICU_DATA_COLLECTION\Programs\Master\
)
to the location based folders on the:
- Regional Server\Programs (full address:
\\ad.wrha.mb.ca\WRHA\REGION\SHARED\ICU_DATA_COLLECTION\Programs
)
Instructions
To roll out a set of changes using updt_all.bat you should be able to just double-click on the file on the server. (used to have to copy to local, but I think it works from server now)
A command window will display which directory/location is currently being processed.
Updt_all.bat will check if a ccmdb.mdb file on the server is currently open, i.e. has a corresponding ccmdb.ldb file. If a ccmdb.ldb is present the location will not be updated. Otherwise Updt_all.bat will copy the ccmdb.mdb from the "master" directory to the location directory currently being processed.
When processing is done, the log is displayed. Go to the end of the file to see results of the most roll-out.
Inner Workings
Updt_all.bat uses a for loop to cycle through a collection of locations (set locs) to do the following:
- check if file is in use, i.e. a lock file exists
- If so, don't process the location
- If not,
- delete ccmdb.20
- rename ccmdb.19 to ccmdb.20, ccmdb18 to ccmdb.19, ... ccmdb.1 to ccmdb.2, ccmdb.mdb to ccmdb.1
- copy new ccmdb.mdb from master
Log File
- the log file includes a date, time and which CCMDB.mdb's have been updated successfully & those that were not updated because file is open and in use.
- Log File location: Regional Server\Programs\Master\log.txt (full address:
\\ad.wrha.mb.ca\WRHA\REGION\SHARED\ICU_DATA_COLLECTION\Programs\Master\log.txt
)
- Log File location: Regional Server\Programs\Master\log.txt (full address:
Related Articles
- See CCMDB.mdb Change Log for changes done in 2008.
- See CCMDB.mdb Change Log 2009, for any changes or updated listed that have been rolled out to PDA's for the new year.