Paradox Community

Items in pnews.paradox-development

Subject:Re: BDE setup
Date:1 Oct 2021 13:09:11 -0400
From:"thies grimm" <>

we start pdox using a batch file configuring this ans that:
:: clean start of Paradox

@Echo Off

:: **** Variables ****
Set Work=D:\Data\Work
Set Priv=D:\Data\Priv
Set IdapiCfg="C:\Program Files (x86)\Common Files\Borland Shared\BDE\IDAPI32.CFG"
SET NetDir=c:\Data
SET startScript="D:\Data\Work\dev - StartPdox.ssl"
SET pdox="C:\Program Files (x86)\Paradox\Programs\pdxwin32.exe"

ECHO *******************************************************************************
ECHO **** Variables                                                     
ECHO *******************************************************************************
ECHO Work        = %work%
ECHO Priv        = %Priv%
ECHO IdapiCfg    = %IdapiCfg%
ECHO NetDir      = %NetDir%
ECHO startScript = %startScript%
ECHO pdox        = %pdox%
ECHO *******************************************************************************

:: **** Registry ****

::   Designer
reg add HKCU\Software\Corel\Paradox\11.0\PDOXWIN\Designer /v GridSettings
/d "cm 1 20" /f >NUL
reg add HKCU\Software\Corel\Paradox\11.0\PDOXWIN\Designer /v RulerExtd /d
on /f >NUL

::   Editor Window
reg add "HKCU\Software\Corel\Paradox\11.0\PDOXWIN\Editor Window" /v "Font
name" /d Consolas /f >NUL
reg add "HKCU\Software\Corel\Paradox\11.0\PDOXWIN\Editor Window" /v "Font
size" /d 13 /f >NUL

::   Properties
reg add HKCU\Software\Corel\Paradox\11.0\PDOXWIN\Properties /v DeveloperMenu
/d True /f >NUL
reg add HKCU\Software\Corel\Paradox\11.0\PDOXWIN\Properties /v Level /d Advanced
/f >NUL
reg add HKCU\Software\Corel\Paradox\11.0\PDOXWIN\Properties /v ShowStartupExpert
/d False /f >NUL

::   BDE LanguageDriver 
reg add "HKCU\Software\WOW6432Node\Borland\Database Engine\Settings\Drivers\Paradox\Init"
/v LangDriver /d ANSII850 /f >NUL

:: **** create Dirs ****
if not exist %work%\NUL (md %work%)
if not exist %priv%\NUL (md %priv%)

:: **** delete lock files ****

::   lck Files
if exist %work%\PARADOX.LCK (del %work%\PARADOX.LCK /F)
if exist %work%\PDOXUSRS.LCK (del %work%\PDOXUSRS.LCK /F) 
if exist %priv%\PARADOX.LCK (del %priv%\PARADOX.LCK /F) 
if exist %priv%\PDOXUSRS.LCK (del %priv%\PDOXUSRS.LCK /F) 

::   tmp. files 
if exist %priv%\__*.* (del %priv%\__*.* /F) 

::   xml files in priv
if exist %priv%\*.xml (del %priv%\*.xml /F) 
:: XML Files in priv are problematic ... 

::   NetDir
if exist %NetDir%\PDOXUSRS.NET (del %NetDir%\PDOXUSRS.NET /F) 

:: start Paradox
@Echo On
start "" %pdox% -w %work% -p %Priv% -o %IdapiCfg% -c -q %startScript%



watch the reg lines .. (just one line each) ... 

Thies Grimm

"Linda" <> wrote:
>Thanks for quick answer,
>That means the only way do set the bde parameters is creating a cfg file
>with the bde administrator program?
>>On 9/29/2021 5:06 AM, Linda Bye wrote:
>>> Hi.
>>> I can see some folks recommend setting up most of the BDEadmin 
>>> parameters by startup.
>>> How is this done?. In a script? and where can I find the methods/proc
>>> for that?
>>> Linda
>>You specify a particular configuration file to use with the -o option on
>>the start command of the shortcut:
>>-o "C:\Users\Public\pdoxdirs\manager_invoice\BDE\idapi.cfg"
>>A full start command might look like this (broken down into lines for 
>>"C:\Users\Public\pdoxdirs\Corel\WordPerfect Office 
>>2002\programs\pdxwin32.exe"  ;;<< path to program
>>-c  ;;<< clear desktop
>>-p "C:\Users\Public\pdoxdirs\manager_invoice\pdxpriv"  ;;<<path to 
>>private directory
>>-o "C:\Users\Public\pdoxdirs\manager_invoice\BDE\idapi.cfg"   ;;<<  BDE
>>file to use
>>-w "\\APPSERVER1\data\manager_BETA"   ;// working directory
>>managerstartupP10.fdl ;// form or script to launch on startup
>>Caveat about setting the BDE config file is that all running BDE 
>>applications must use the same BDE file.
>>I've also never seen any real performance changes by fiddling with the

>>BDE settings in WIN 10 or higher. I use it to set the network directory,
>>Mark Bannister

Copyright © 2004