Home > Archive > Clipper > January 2006 > clipper and winXP
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| rpc200512@gmail.com 2006-01-10, 3:55 am |
| Hi
Recently I have installed winXP(on D: ) on my computer.I have changed
my CONFIG.NT as follows
files=150
buffers=50
I have also changed AUTOEXEC.NT as follows
set clipper=f80 ; SWAPPATH:"d:\CLIPTEMP";TEMPPATH:"d:\CLIPTEMP" ;//F:55
//X:32
I have tried to run a small program requiring 2 DBFs and 4 NTXs.However
when I run the program I get get follow msg
Error DBFNTX/1001 Open error REMMAST.DBF (DOS Error 2)
REMMAST.DBF is the first file I open in my program
Pls advice what am I doing wrong
TIA
Rajeev Chavan
| |
| ReIncarnated 2006-01-10, 3:55 am |
| Isn't DOS error 2 'File not found'?
Are you in the same directory as the file?
On 26 Dec 2005 21:38:39 -0800, rpc200512@gmail.com wrote:
>Hi
>Recently I have installed winXP(on D: ) on my computer.I have changed
>my CONFIG.NT as follows
>files=150
>buffers=50
>I have also changed AUTOEXEC.NT as follows
>set clipper=f80 ; SWAPPATH:"d:\CLIPTEMP";TEMPPATH:"d:\CLIPTEMP" ;//F:55
>//X:32
>I have tried to run a small program requiring 2 DBFs and 4 NTXs.However
>when I run the program I get get follow msg
>Error DBFNTX/1001 Open error REMMAST.DBF (DOS Error 2)
>REMMAST.DBF is the first file I open in my program
>
>Pls advice what am I doing wrong
>TIA
>Rajeev Chavan
John.
| |
| Robert J. Stuart 2006-01-10, 3:55 am |
| Yes
Explanation: The specified database (.dbf) file could not be
opened.
Action: Some suggestions to resolve the problem are:
1. Check to make sure that the specified file exists. If the file is
not in the directory where the application runs, use SET DEFAULT or
SET PATH to make the file accessible, or specify the full path name
where the file can be found.
2. In a network environment, make sure the application has the
necessary
rights to access the file. If the file is available only for read
access, use the READONLY clause on the USE command.
CA-Clipper's default error handler (Errorsys.prg) will set NETERR()
to true (.T.) and will ask DBFNTX to default if the error was due to
a sharing violation on the network.
See Also: USE command, "Network Programming" chapter in the
Programming and Utilities Guide
Also I like to set my enviroments from the windows enviroment setting not
the autoexec.nt. Not sure how much of a differance that makes, but that way
I am sure that it is set for all, not just dos.
Bob S.
"ReIncarnated" <manytimes@the_cinema.com> wrote in message
news:0cl1r1pijbjun26ta02q4s1k21vru2snsf@
4ax.com...
> Isn't DOS error 2 'File not found'?
>
> Are you in the same directory as the file?
>
> On 26 Dec 2005 21:38:39 -0800, rpc200512@gmail.com wrote:
>
> John.
| |
| ReIncarnated 2006-01-10, 3:55 am |
| Tehn I suggest that somewhere or other the path you *think* you are
looking through is not actually set.
Try running it from the directory the DBF's are actually in - it is
obvious that as it stands the path setting is not correct.
On Tue, 27 Dec 2005 07:43:18 GMT, "Robert J. Stuart"
<rjstuart@earthlink.net> wrote:
>Yes
>
> Explanation: The specified database (.dbf) file could not be
> opened.
>
> Action: Some suggestions to resolve the problem are:
>
> 1. Check to make sure that the specified file exists. If the file is
> not in the directory where the application runs, use SET DEFAULT or
> SET PATH to make the file accessible, or specify the full path name
> where the file can be found.
>
> 2. In a network environment, make sure the application has the
>necessary
> rights to access the file. If the file is available only for read
> access, use the READONLY clause on the USE command.
>
> CA-Clipper's default error handler (Errorsys.prg) will set NETERR()
> to true (.T.) and will ask DBFNTX to default if the error was due to
> a sharing violation on the network.
>
> See Also: USE command, "Network Programming" chapter in the
> Programming and Utilities Guide
>
>Also I like to set my enviroments from the windows enviroment setting not
>the autoexec.nt. Not sure how much of a differance that makes, but that way
>I am sure that it is set for all, not just dos.
John.
| |
| Ian Boys 2006-01-10, 3:55 am |
| I have NEVER use the Buffers command in 2000/XP, I think that was from
DOS/9x days.
Check that your path is set, there may not be enough environment memory to
support it.
Ian Boys
DTE
<rpc200512@gmail.com> wrote in message
news:1135661919.167324.253830@g44g2000cwa.googlegroups.com...
> Hi
> Recently I have installed winXP(on D: ) on my computer.I have changed
> my CONFIG.NT as follows
> files=150
> buffers=50
> I have also changed AUTOEXEC.NT as follows
> set clipper=f80 ; SWAPPATH:"d:\CLIPTEMP";TEMPPATH:"d:\CLIPTEMP" ;//F:55
> //X:32
> I have tried to run a small program requiring 2 DBFs and 4 NTXs.However
> when I run the program I get get follow msg
> Error DBFNTX/1001 Open error REMMAST.DBF (DOS Error 2)
> REMMAST.DBF is the first file I open in my program
>
> Pls advice what am I doing wrong
> TIA
> Rajeev Chavan
>
| |
| rpc200512@gmail.com 2006-01-10, 3:55 am |
| Hi
Thanks to all.The program is on root of d: ie at d:\ and all the dbfs
and ntxs are on the root.The program uses follo to open the files
sele 1
use remmast index remmast
pack
sele 2
use remindme index remindme
pack
Pls advice.
TIA
Rajeev Chavan
| |
| pete@nospam.demon.co.uk 2006-01-10, 3:55 am |
| In article <1135686420.007765.83520@o13g2000cwo.googlegroups.com>
rpc200512@gmail.com writes:
> Hi
> Thanks to all.The program is on root of d: ie at d:\ and all the dbfs
> and ntxs are on the root.The program uses follo to open the files
> sele 1
> use remmast index remmast
> pack
> sele 2
> use remindme index remindme
> pack
> Pls advice.
> TIA
> Rajeev Chavan
Check that you have permission to create files in the root dir.
My hunch is that you don't, so put everything in a subdir.
Pete
--
"We have not inherited the earth from our ancestors,
we have borrowed it from our descendants."
| |
| Robert Haley 2006-01-10, 3:55 am |
| Rajeev,
You could try removing the (set clipper) command from AUTOEXEC.NT and
either:
1) set the parameters via a .BAT file to run the application,
2) specify the parameters at time of application startup, e.g.:
mytest.exe //F:55 //X:32 //SWAPPATH:"D:\CLIPTEMP"
//TEMPPATH:"D:\CLIPTEMP"
* ( D:\CLIPTEMP - If volume D: is using NTFS, (Start->Control
Panel->Administrative Tools->Computer Management->Storage) make sure
the temp and application directories have sufficient permissions for
the Windows XP user to create, modify, delete files)
re: running application from (Root) directory - AFAIK in Win2k / XP /
2k3, when using NTFS volumes the root directory is permission
restricted by default - best to place the application in a subdirectory
off the root, ie: D:\MYAPP and grant the necessary permissions for the
subdirectory to the user / groups in question.
HTH & Regards,
Bob
| |
| rpc200512@gmail.com 2006-01-10, 3:55 am |
| Hi Bob & Pete
I will try as adviced by you and inform.
Thanks for all the help
Rajeev Chavan
| |
|
| you could change the code to open the dbfs with the full path instead
of relying on the default.
use remmast index remmast To
use d:\remmast index d:\remmast
Mike
|
|
|
|
|