Consultor Eletrônico



Kbase P11840: How to automate response to prorest command via a batch process
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/15/2008
Status: Verified

GOAL:

How to automate overwrite response to prorest command via a batch process

FACT(s) (Environment):

Windows 32 Intel
Windows NT 32 Intel/Windows 2000

FIX:

Sample batch file to automate restore of a database via a batch process:

rem Establish the environmental variables
set dlc=C:\program files\progress
set path=%dlc%\bin;%path%

echo do restore
call prorest sports sports.bak < yes.txt
pause

The yes.txt file is a file which contains a single "y" character in it. The purpose of the yes.txt file is to automate the "y" reply necessary when prorest detects that you will overwrite a pre-existing database.