Paradox Community

Items in pnews.paradox-development

Subject:Re: Start Paradox
Date:14 May 2020 10:17:46 -0400
From:"Thies Grimm" <thies.grimm@t-online.de>
Newsgroups:pnews.paradox-development

nice idea to check wether paradox is running or not.

I haven't heard of Jan's memory manager. What is it and how do I get it?

Thies


Mark Bannister <markRemove@THISinjection-moldings.com> wrote:
>
>Similar and I have problems with Pdox not shutting down sometimes so I
>check if it is running and if so, ask the user to wait until it closes.
>I also have the option of starting Jan's memory manager.
>
>
>
>:: Private Directory to use  NOTE no \ at end
>Set privdir="C:\Users\Public\pdoxdirs\manager13Beta\pdxpriv"
>
>::location of pdoxwin program
>set pdoxdir="C:\Users\Public\pdoxdirs\Corel\WordPefectX9\programs\"
>
>:: IDAPI file name and directory path
>set configdir="C:\Users\Public\pdoxdirs\manager13Beta\BDE\idapi.cfg"
>
>:: Working up Directory  NO ending \
>set workingDir="\\Appserver1\data\Manager_beta13"
>
>:: startup form or object name
>set startForm="managerstartupP11.fdl"
>
>SET COUNTER=0
>
>::  taskslist /FI "STATUS eq RUNNING" | find /i "pdxwin32.exe" > NUL
>:: if pdox is running then wait for it to end before starting again
>:SEARCH
>set /A COUNTER=COUNTER+1
>tasklist|find /i "pdxwin32.exe" >NUL
>if errorlevel 1  (
>GOTO STARTUP
>
>)
>
>) ELSE (
>@ECHO OFF
>ECHO *************************************************
>ECHO ****                                         ****
>ECHO ****        Pardox Already Running           ****
>ECHO ****                                         ****
>ECHO ****  Please switch to open instance         ****
>ECHO ****          Press "N" to quit              ****
>ECHO ****          Press "I" to Ignore            ****
>ECHO ****          Try:  %COUNTER%                ****
>ECHO *************************************************
>
>
>@ECHO OFF
>
>CHOICE /C YNI  /D Y /T 10 /M "Retry in 10 seconds"
>IF ERRORLEVEL  3 (GOTO STARTUP)
>IF ERRORLEVEL  2 ( EXIT /B )
>IF ERRORLEVEL  1 (GOTO SEARCH)
>
>
>)
>
>
>::  first set of empty quotes is a workaround for START command issues
>
>
>
>::tasklist|find /i "bdemem.exe" >NUL
>::if errorlevel 1  (
>::CD "C:\Users\Public\pdoxdirs\manager_invoice\MemoryMngr\bdemem"
>::START bdemem.exe
>::)
>goto :eof
>
>goto :eof
>
>:STARTUP
>@ECHO ON
>::  Delete any lock files in the priv directory
>del %privdir%"\*.LCK" /s /f
>
>:: delete any temp files
>del %privdir%"\__*.*" /s /f
>del %privdir%"\attachment*.zip" /s /f
>del %privdir%"\tv_.*" /s /f
>:: DELETE xml files as they can cause queries to crash
>del %privdir%"\*.xml" /s /f
>:: delete everything in pgdata folder
>del %privdir%"\pgdata\*.*"  /Q
>
>
>
>START /MAX "" %pdoxdir%pdxwin32.exe -c -p %PRIVDIR% -o %configdir% -w
>%workingDir% %startForm%
>
>
>
>:: start memory manager
>tasklist|find /i "pdxmem.exe" >NUL
>if errorlevel 1  (
>CD "C:\Users\Public\pdoxdirs\MemoryMngr\"
>START pdxmem.exe
>goto :eof
>
>On 5/13/2020 9:07 AM, Thies Grimm wrote:
>> Hi,
>> my way to start Paradox is using a batch file:
>> 
>> 1. setting some variables like work, priv, ...
>> 2. setting some Registry Keys 
>> 3. deleting old lock-files
>> 4. start paradox with start-script
>> 
>> if you want to test it, just set the varialbes the way you want it ...

>> 
>> may be, it might be interesting for somebody, may be somebody has some
suggetions
>> .. 
>> 
>> batch File: startPdox.cmd
>> ************************************************************
>> :: clean start of Paradox
>> 
>> :: 1.      Batch starting Paradox
>> :: 1.1     Variables
>> :: 1.2     Registry
>> :: 1.2.1   Designer
>> :: 1.2.2   Editor Window
>> :: 1.2.3   Properties
>> :: 1.2.4   BDE LanguageDriver 
>> :: 1.3     delete Paradox LockFiles
>> :: 1.3.1   lck Files
>> :: 1.3.2   NetDir
>> :: 1.4     start Paradox
>> :: 2.      Start-Script 
>> 
>> :: 1. Batchdatei starting Paradox
>> 
>> :: 1.1 Variables
>> Set Work=%USERPROFILE%\pdox\work
>> Set Priv=%USERPROFILE%\pdox\Priv
>> Set IdapiCfg=%APPDATA%\Pdox\Idapi32.cfg
>> SET NetDir=%Public%
>> SET startScript=C:\Data\startPdoxDEV.ssl
>> SET pdox="C:\Program Files (x86)\Paradox\Programs\pdxwin32.exe"
>> 
>> 
>> :: 1.2 Registry
>> 
>> :: 1.2.1 Designer
>> reg add HKCU\Software\Corel\Paradox\11.0\PDOXWIN\Designer /v GridSettings
>> /d "cm 1 20" /f
>> reg add HKCU\Software\Corel\Paradox\11.0\PDOXWIN\Designer /v RulerExtd
/d
>> on /f
>> 
>> :: 1.2.2 Editor Window
>> reg add "HKCU\Software\Corel\Paradox\11.0\PDOXWIN\Editor Window" /v "Font
>> name" /d Consolas /f
>> reg add "HKCU\Software\Corel\Paradox\11.0\PDOXWIN\Editor Window" /v "Font
>> size" /d 13 /f
>> 
>> :: 1.2.3 Properties
>> reg add HKCU\Software\Corel\Paradox\11.0\PDOXWIN\Properties /v DeveloperMenu
>> /d True /f
>> reg add HKCU\Software\Corel\Paradox\11.0\PDOXWIN\Properties /v Level /d
Advanced
>> /f
>> reg add HKCU\Software\Corel\Paradox\11.0\PDOXWIN\Properties /v ShowStartupExpert
>> /d False /f
>> 
>> :: 1.2.4 BDE LanguageDriver 
>> reg add HKCU\Software\WOW6432Node\Borland\Database Engine\Settings\Drivers\Paradox\Init
>> /v LangDriver ANSII850 /f
>> 
>> 
>> :: 1.3 delete Paradox LockFiles
>> :: 1.3.1 lck Files
>> del %work%\*.lck
>> del %priv%\*.lck /s
>> :: 1.3.2 NetDir
>> del %NetDir%\PDOXUSRS.NET
>> 
>> :: 1.4 start Paradox
>> ÔéČEcho On
>> %pdox% -w %work% -p %Priv% -o %IdapiCfg% -c -q %startScript%
>> 
>> 
>> :: Paradox Commandline Options
>> 
>> :: -b Prevents multiple instances of Paradox from being loaded.
>> :: -c Starts Paradox with a clear desktop.
>> :: -d Filename Specifies an alternate PDOXWORK.INI
>> :: -e  Prevents writes to the system registry.
>> :: -f Forces writes to the system registry.
>> :: -i Filename Specifies an alternate PDOXWIN.INI file
>> :: -m Loads Paradox as a minimized application.
>> :: -n Prevents saving work and private directories on exit.
>> :: -o Filename Alternate BDE configuration file.
>> :: -p Directory Start with a different private directory
>> :: -q Suppresses the Paradox splash screen while it is loading.
>> :: -s Prevents resizing of the Paradox window.
>> :: -t Allows resizing of the Paradox window.
>> :: -w Directory Starts Paradox with the specified working directory.
>> :: -y Forces saving work and private directories on exit.
>> :: StartFile 
>> 
>> :: PDOXWORK.INI
>> :: folder definitions for use with the Project Viewer
>> :: By default, Paradox does not use an .INI file to store settings, but
you
>> can create a file named PDOXWORK.INI in your working directory, and Paradox
>> will read settings from it automatically.
>> 
>> :: PDOXWIN.INI 
>> :: desktop settings. By default, Paradox does not use an .INI file to
store
>> settings, but you can create a file named PDOXWIN.INI and Paradox will
read
>> settings from it automatically.
>> ************************************************************
>> 
>> 
>


Copyright © 2004 thedbcommunity.com