FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Dos Error 2 : Access from network
Posts: 115
Joined: Mon Oct 17, 2005 04:42 AM

Dos Error 2 : Access from network

Posted: Thu Dec 14, 2006 06:32 AM

Dear All,

I am using May-2006 build. When I try to access an application from the network, it gives me Dos error 2. However when I map that drive, I do not face that problem.

Can someone help ?

TIA
Milan.

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Dos Error 2 : Access from network

Posted: Sun Dec 17, 2006 10:09 PM

Milan,

DOS error 2 means the file can not be found. When you map the drive, its found and there is no error.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 115
Joined: Mon Oct 17, 2005 04:42 AM

Dos Error 2 : Access from network

Posted: Mon Dec 18, 2006 04:37 AM
Dear Antonio,

No my problem is like this :

Suppose using My computer I go \\server\c\test and then click on abc.exe, dos error 2 occurs.

Instead I map \\server\c to Z: drive and then go z:\test\ and click on abc.exe DOS error 2 do not occur.

This was not happening before. Even my pure xHarbour code works fine.

Can you shed light on what am I doing wrong ?

TIA
Milan.

Antonio Linares wrote:Milan,

DOS error 2 means the file can not be found. When you map the drive, its found and there is no error.
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Dos Error 2 : Access from network

Posted: Mon Dec 18, 2006 07:55 AM

Milan,

Do you get the same error with samples\tutor02.prg ? thanks,

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 115
Joined: Mon Oct 17, 2005 04:42 AM

Dos Error 2 : Access from network

Posted: Mon Dec 18, 2006 10:08 AM
Dear Antonio,

My fault. To explain you more, that error occurs only when it tries to open a dbf file. Rest works fine.

TIA
Milan.

Antonio Linares wrote:Milan,

Do you get the same error with samples\tutor02.prg ? thanks,
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM

Dos Error 2 : Access from network

Posted: Mon Dec 18, 2006 02:08 PM

Milan,

Can you try modify file host in windows\system32\drivers\etc with:

computername ip

regards

Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Dos Error 2 : Access from network

Posted: Tue Dec 19, 2006 01:06 AM
Milan,

I always put this code at the top of my programs to prevent that.

   // prevent "DOS error 2. File not Found"
   set default to (cFilePath( GetModuleFileName( GetInstance() ) ))


James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion