Tuesday, November 28, 2006

Demo Script (Win) - Migrating & compiling forms application

@ECHO OFF
REM WINDOWS Migrate FORMS
Echo migrating Forms....

del E:\Logs\*.log

Echo *************************** start ******************************************

set forms_path=D:\oracle\OraMT\forms;E:\apps\forms;E:\apps\lib;E:\apps\menu;E:\apps\pll;E:\apps\template

del E:\apps\pll\*.plx
del E:\apps\pll\*.err

e:

cd E:\apps\pll

for %%f IN (*.pll) do frmcmp Module_type=LIBRARY Module=%%f userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes
ECHO FINISHED Migrating PLL

del E:\apps\template\*.fmx
del E:\apps\template\*.err

e:
cd E:\apps\template

for %%f IN (*.fmb) do call frmplsqlconv mode=batch module=%%f userid=username/password@database log=e:\logs\%%f.log

for %%f IN (*.fmb) do frmcmp Module_type=form Module=%%f userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes
ECHO FINISHED Migrating Temaplate

del E:\apps\menu\*.mmx
del E:\apps\menu\*.err

e:
cd E:\apps\menu

for %%f IN (*.mmb) do call frmplsqlconv mode=batch module=%%f userid=username/password@database log=e:\logs\%%f.log

for %%f IN (*.mmb) do frmcmp Module_type=menu Module=%%f userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes strip_source=NO
ECHO FINISHED Migrating Menus

del E:\apps\forms\*.fmx
del E:\apps\forms\*.err

e:
cd E:\apps\forms

for %%f IN (*.fmb) do call frmplsqlconv mode=batch module=%%f userid=username/password@database log=e:\logs\%%f.log

for %%f IN (*.fmb) do frmcmp Module_type=form Module=%%f userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes strip_source=NO
ECHO FINISHED Migrating Forms

Echo *************************** end *****************************************

No comments: