DOS Error 267)

DOS Error 267)

Postby Otto » Sun Jul 28, 2019 4: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: DOS Error 267)

Postby Otto » Sun Jul 28, 2019 4: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: DOS Error 267)

Postby Antonio Linares » Sun Jul 28, 2019 4:44 pm

Do you have write permits ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42103
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: DOS Error 267)

Postby Otto » Sun Jul 28, 2019 4:54 pm

Dear Antonio,
where are the temporary files located.
Thank you in advance Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: DOS Error 267)

Postby Otto » Sun Jul 28, 2019 5:05 pm

Dear Antonio,
thank you for your help.
Yes it was a problem with permits.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: DOS Error 267)

Postby Iris Gesser » Fri Jun 04, 2021 5: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
User avatar
Iris Gesser
 
Posts: 37
Joined: Fri Apr 22, 2016 10:19 pm

Re: DOS Error 267)

Postby Antonio Linares » Fri Jun 04, 2021 5:09 pm

Dear Iris,

Where is TEMP5.dbf located ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42103
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: DOS Error 267)

Postby hmpaquito » Fri Jun 04, 2021 6:08 pm

Try so:


Code: Select all  Expand view  RUN
FOR i:= 1 to 3
   TRY
       INDEX ON ....
       EXIT
   END
NEXT
hmpaquito
 
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: DOS Error 267)

Postby Iris Gesser » Fri Jun 04, 2021 9:02 pm

Dear all,

this was the solution:

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

lMKDir(CtMP)

Kind regards and thank you for the answers!
User avatar
Iris Gesser
 
Posts: 37
Joined: Fri Apr 22, 2016 10:19 pm

Re: DOS Error 267)

Postby James Bott » 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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: DOS Error 267)

Postby RAMESHBABU » Sat Jun 05, 2021 4:37 am

Mr.Otto,

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

Code: Select all  Expand view  RUN

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
User avatar
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 69 guests