Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

run foxbase+ in 2000 or xp 1

Status
Not open for further replies.
Aug 10, 2004
22
US
i received the following error when trying to run foxbase in w2k and xp: error 2009 not enough space in environment. also, the data resides on a network share.

thanks for any help offered.
 
See thread182-757181
DSummZZZ said:
Check to see if you have all the necessary rights to where your temp files are being written.
Or change the directory where they're written to a folder you do have sufficient rights to.
Windows NT family (2000 and XP included) do not allow you to write to the root directory if you do not have administrator rights. You may want to use the C:\Windows\Temp directory instead or create the directory you need while someone is logged in as Administrator. Please let us know if this is the answer.

Also, you may encounter other related issues and using the search function for the error number or phrase will quite likely point you in the right direction to a solution or workaround.

dbMark
 
I guess the error "not enough space in environment" means the space reserved for system variables (set thru system and the command SET "var = value" in batchfiles) is not large enough. You can increase its size in system settings or - simple delete unused system variables in batchfile starting your DOS app. I use this way in launching my clipper (DOS) apps in W2K system - here is example of my batchfile:
-----------------------
@ECHO OFF
REM deleting of unused system variables
set PROCESSOR_ARCHITECTURE=
set PROCESSOR_IDENTIFIER=
set PROCESSOR_LEVEL=
set PROCESSOR_REVISION=
set ALLUSERSPROFILE=
set APPDATA=
set COMMONPROGRAMFILES=
set COMPUTERNAME=
set FILE_SERVER=
set HOMEDRIVE=
set HOMEPATH=
set LOGONSERVER=
set NUMBER_OF_PROCESSORS=
set NWLANGUAGE=
set NWUSERNAME=

REM set my own variables for my app
set PATH=..\std;c:\dos\bin
set STD=..\std
set CHB_ROK=%1
set CHB_DATA=%2
set CHB_PROG=..\std
set CS_CODE=L
set LOGNAME=Bucek
set WORKDIR=.\TMP
set HOMEDIR=.\
set DDF=ver_801.ddf

chb.exe
if errorlevel 1 pause
---------------------------
The system variables are deleted only in this session. The exact list of variables existing on your system you can get using dos command "SET > set.txt" and viewing the file "set.txt".
HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top