Oracle Developer 2000 批量编译pll、frm、mmb、rdf文件, 编译后的文件名后缀plx、fmx、mmx、rep
需要安装的子软件:
Oracle Report Builder
Oracle Form Builder
1、建立compile.bat文件
@echo off
set DBSTR=username/password@dbname
echo --------------------------------------------------------------------
echo Recompile all modules
echo Current Dir : %~d0%~p0
echo Default DB : %DBSTR%
echo --------------------------------------------------------------------
set /p DB=Input new connect string :
if DB == "" goto start
set %DBSTR%=%DB%
:start
cd ..
del /s /q *.plx *.err *.fmx *.mmx *.rep > comp.log
echo compiling PLL ....
FOR /R .\BA %%f IN (*.pll) DO ifcmp60 module=%%f userid=%DBSTR% batch=yes module_type=library window_state=MINIMIZE
echo compiling FMB ....
FOR /R .\BA %%f IN (*.fmb) DO ifcmp60 module=%%f userid=%DBSTR% batch=yes window_state=MINIMIZE
echo compiling MMB ....
FOR /R .\BA %%f IN (*.mmb) DO ifcmp60 module=%%f userid=%DBSTR% batch=yes module_type=menu window_state=MINIMIZE
echo compiling RDF ....
FOR /R .\BA %%f IN (*.rdf) DO rwcon60 source=%%f userid=%DBSTR% batch=yes stype=rdffile dtype=repfile overwrite=yes
2、compile.bat文件存放位置:.\BA
3、执行compile.bat文件,执行后将生成文件*.plx *.err *.fmx *.mmx *.rep comp.log