H
Henry Stockbridge
Hi,
I am creating a batch file that will detect the value for a particular
key. I want to then pass that value into a variable and process
accordingly.
::::::::::::::::::::::::::::::::::::::::::::::::
@echo off
::
Set DefaultMDW=
::
reg query HKLM\SOFTWARE\Microsoft\Office\8.0\Access\Jet\3.5\Engines /v
SystemDB
::
:: If result contains the string "C:\WINDOWS\system32\SYSTEM.MDW",
then set
:: the variable to "System32", otherwise set the variable to "Other"
::
If %DefaultMDW%==System32 GOTO xxxx
If %DefaultMDW%==Other GOTO yyyy
:yyyy
Echo Unable to update system
Pause
Exit
:xxxx
copy CODE GOES HERE
pause
exit
:::::::::::::::::::::::::::::::::::::::::::::::::::
Any help you can lend would be appreciated.
Henry
I am creating a batch file that will detect the value for a particular
key. I want to then pass that value into a variable and process
accordingly.
::::::::::::::::::::::::::::::::::::::::::::::::
@echo off
::
Set DefaultMDW=
::
reg query HKLM\SOFTWARE\Microsoft\Office\8.0\Access\Jet\3.5\Engines /v
SystemDB
::
:: If result contains the string "C:\WINDOWS\system32\SYSTEM.MDW",
then set
:: the variable to "System32", otherwise set the variable to "Other"
::
If %DefaultMDW%==System32 GOTO xxxx
If %DefaultMDW%==Other GOTO yyyy
:yyyy
Echo Unable to update system
Pause
Exit
:xxxx
copy CODE GOES HERE
pause
exit
:::::::::::::::::::::::::::::::::::::::::::::::::::
Any help you can lend would be appreciated.
Henry