FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour DOS Error 267)
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
DOS Error 267)
Posted: Sun Jul 28, 2019 04:17 PM

Hello,
trying to create a TEMPORARY index I get following error:
Error description: (DOS Error 267) DBFCDX/1006 Create error: TEMPUMS.cdx

index on field->AUFTRAGNUM TAG TmpAUFT6 TO TEMPUMS TEMPORARY

Can someone please help me.
Thank you in advane
Otto

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: DOS Error 267)
Posted: Sun Jul 28, 2019 04:33 PM

Hello,
Now I copied the whole program to this new server and get:
hb_cdxSortWritePage: Can't create temporary file.
Thank you for your help and best regards,
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: DOS Error 267)
Posted: Sun Jul 28, 2019 04:44 PM

Do you have write permits ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: DOS Error 267)
Posted: Sun Jul 28, 2019 04:54 PM

Dear Antonio,
where are the temporary files located.
Thank you in advance Otto

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: DOS Error 267)
Posted: Sun Jul 28, 2019 05:05 PM

Dear Antonio,
thank you for your help.
Yes it was a problem with permits.
Best regards,
Otto

Posts: 38
Joined: Fri Apr 22, 2016 10:19 PM
Re: DOS Error 267)
Posted: Fri Jun 04, 2021 05:01 PM

Dear community,
I have the same issue with a program. I get "...Create error: TEMP5.cdx...".
Can anyone help me, please? Where do I have to set the permission?
Where is temp5.cdx created.
Thank you in advance and kind regards
Iris

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: DOS Error 267)
Posted: Fri Jun 04, 2021 05:09 PM

Dear Iris,

Where is TEMP5.dbf located ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: DOS Error 267)
Posted: Fri Jun 04, 2021 06:08 PM
Try so:


Code (fw): Select all Collapse
FOR i:= 1 to 3
   TRY
       INDEX ON ....
       EXIT
   END
NEXT
Posts: 38
Joined: Fri Apr 22, 2016 10:19 PM
Re: DOS Error 267)
Posted: Fri Jun 04, 2021 09:02 PM

Dear all,

this was the solution:

function main()
LOCAL CtMP := GETENV( "TMP" )

  lMKDir(CtMP)

Kind regards and thank you for the answers!

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: DOS Error 267)
Posted: Fri Jun 04, 2021 10:37 PM

Just for general reference.

Here are some notes (to myself) from my note app:

At the top of your program you should set the default path to DBFs and indexes.

SET DEFAULT TO ".\"

Note that above prepresses to:

Set(7.".\")

To use a variable you can't do:

SET DEFAULT TO cPath

But this works:

SET DEFAULT TO (cPath)

If you don't set the path, you may have an issue like I once did. The files were created and saved, but I couldn't find them. They were not in the same directory as the EXE which they normally are. There were stored in a completely different directory. Took me hours to figure this out.

So always set the default path!

Nice to see you back on the forum, Iris.

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
Re: DOS Error 267)
Posted: Sat Jun 05, 2021 04:37 AM
Mr.Otto,

I create Temporary Indexes as under and working Ok since a long time.

Code (fw): Select all Collapse
USE <database> 
INDEX ON <field> TAG <cTag> TEMPORARY or MEMORY
OrdSetFocus(cTag)


Plese note that TO <FileName> clause is not required when you use
TEMPOARAY or Memory clauses.

-Ramesh Babu

Continue the discussion