Ran a google search for your particular problem. Try this link:
http://www.tek-tips.com/viewthread.cfm?qid=1082142&page=1
or do
from
heiteixyz (Programmer) 11 Sep 05 15:20
You must look for the "set"-vars.
The system define many of them for default - any of them need memory. You can use a special batch-file to "unset" most of the vars. This file you must "call" at first of the program execution.
Sample batch file "set_env.bat":
--------------------------------
@echo off
set ALLUSERSPROFILE=
set APPDATA=
set CLASSPATH=
rem set CLIENTNAME=
set CommonProgramFiles=
set Computername=
set FP_NO_HOST_CHECK=
set HomeDrive=
set HOMEPATH=
set HOMESHARE
set LOGONSERVER=
set NUMBER_OF_PROCESSORS=
set os=
set PROCESSOR_ARCHITECTURE=
set PROCESSOR_IDENTIFIER=
set PROCESSOR_LEVEL=
set PROCESSOR_REVISION=
set ProgramFiles=
set QTJAVA=
set SESSIONNAME=
set temp=
set tmp=
set USERDOMAIN=
set USERGROUP=
set USERNAME=
set USERPROFILE=
set windir=
set Path=C:\windows;C:\windows\system32;C:\windows\system32\wbem
if "%1"=="quit" goto End
dbase4.exe %1
:End
--------------------------------
The second step is to call the set_env-file as first - look the next sample:
--------------------------------
C:
cd C:\Prog16\turnus\prg
call set_env.bat turnus.prg