You are on page 1of 4

How-to Update Batch File

1. . Currently the process of updating the batch file for a new database starts with an email that contains
information regarding the database location and name:

2. Open Windows Explorer and navigate to the bat file directory:


O:\ConcDB\2-DatabaseMenus

3. Find the batch file you want to edit (the batch files are named after the case)
4. Make a copy of the batch file to so that you can go back to the original file if required
5. rt-click on the batch file select "Edit"

6. This will open the batch file in Notepad allowing you to add to or change the batch file

7. You will edit three sections of the bat file when adding a database. The first section is the "echo" section.
EXAMPLE First section edit:
Before adding the new database:
echo 1) NYDOI Production
echo 2) Go Back
echo 3) Exit
After adding the new database (the areas highlighted in red are what has been added and changed):
echo 1) NYDOI Production
echo 2) Kenning Production
echo 3) Go Back
echo 4) Exit
8. The Second section is the "if" section
EXAMPLE Second section edit:
Before adding the new database:
if "%option%"=="1" goto NYDOI_Prod
if "%option%"=="2" goto GoBack
if "%option%"=="3" goto Exit
After adding the new database (the areas highlighted in red are what has been added and changed):
if "%option%"=="1" goto NYDOI_Prod
if "%option%"=="2" goto Kenning_Prod
if "%option%"=="3" goto GoBack
if "%option%"=="4" goto Exit

8. The Third section to edit is below the "if" section and has the path to the database listed.
EXAMPLE Third section edit:
Before adding the new database:
::----------------------------------------------------------------:NYDOI_Prod
Start L:\apps\LexisNexis\Concordance\Concordance.exe "O:\ConcDB\INSCORP v Kenning\NYDOI PROD
DTBS\DATABASE\Nydoi_Prod_Dtbs-Inscorp_V_Kenning.Dcb"
goto Exit
::----------------------------------------------------------------:GoBack
Start O:\ConcDB\2-DatabaseMenus\DatabaseMenu.bat
goto Exit
::----------------------------------------------------------------:Terminate
echo TERMINATING PROGRAM IN 10 SECONDS
SLEEP 10000
goto Exit
::-----------------------------------------------------------------

After adding the new database (the areas highlighted in red are what has been added and changed):
::----------------------------------------------------------------:NYDOI_Prod
Start L:\apps\LexisNexis\Concordance\Concordance.exe "O:\ConcDB\INSCORP v Kenning\NYDOI PROD
DTBS\DATABASE\Nydoi_Prod_Dtbs-Inscorp_V_Kenning.Dcb"
goto Exit
::----------------------------------------------------------------:Kenning_Prod
Start L:\apps\LexisNexis\Concordance\Concordance.exe "O:\ConcDB\INSCORP v Kenning\KENNING PROD
DTBS\DATABASE\28074_1_Kenning_Prod_Nysupreme.Dcb"
goto Exit
::----------------------------------------------------------------:GoBack
Start O:\ConcDB\2-DatabaseMenus\DatabaseMenu.bat
goto Exit
::----------------------------------------------------------------:Terminate
echo TERMINATING PROGRAM IN 10 SECONDS
SLEEP 10000
goto Exit
::-----------------------------------------------------------------

9. Save the file


10. Test by double clicking the batch file to open up the menu

11. When you enter the number of the databases it should open the database in Concordance:

You might also like