Re: FPD 2.6 test for a drive without crashing

2015-10-26 Thread AndyHC
On 26/10/2015 09:45, Mike Copeland wrote: I'm not sure FPD or Windows see a NAS any differently than any shared drive from any kind of source...another Windows machine, a Linux box, or a Windows server. Mike Copeland . A quick check confirmed this: USE "\\Mybookworld\public\logfile.dbf"

Re: FPD 2.6 test for a drive without crashing

2015-10-25 Thread Mike Copeland
I'm not sure FPD or Windows see a NAS any differently than any shared drive from any kind of source...another Windows machine, a Linux box, or a Windows server. Mike Copeland Lew Schwartz wrote: The earlier idea on this thread of trapping the error with an on error routine and/or a more robus

Re: FPD 2.6 test for a drive without crashing

2015-10-25 Thread Lew Schwartz
The earlier idea on this thread of trapping the error with an on error routine and/or a more robust analysis where the fopen() error number is captured might work. I haven't written code like this for years, but I don't remember network drives being a problem. I never worked with NAS drives, howeve

Re: FPD 2.6 test for a drive without crashing

2015-10-25 Thread John R. Sowden
Thank you for the fopen idea. I am not using share and I don't know if the drive is mapped or UNC. After playing around with fopen though, I discovered that the error is an OS/network error. What I wanted to do was, if the network drive failed, then fp would default to the local drive, wheth

Re: FPD 2.6 test for a drive without crashing

2015-10-24 Thread Lew Schwartz
I think I used to use fopen("Drive:\nul") > 0 -Lew Schwartz On Sat, Oct 24, 2015 at 6:28 PM, John R. Sowden wrote: > Is there is way in FPD 2.6 to test to see if a drive is working without > having the program crash. I have a network where I test for a remote drive > (peer to peer net) before

RE: FPD 2.6 test for a drive without crashing

2015-10-24 Thread Darren
...@leafe.com Subject: RE: FPD 2.6 test for a drive without crashing John Is it a mapped drive or UNC + share ? -Original Message- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of John R. Sowden Sent: Sunday, 25 October 2015 9:29 AM To: profoxt...@leafe.com Subject: FPD

RE: FPD 2.6 test for a drive without crashing

2015-10-24 Thread Darren
John Is it a mapped drive or UNC + share ? -Original Message- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of John R. Sowden Sent: Sunday, 25 October 2015 9:29 AM To: profoxt...@leafe.com Subject: FPD 2.6 test for a drive without crashing Is there is way in FPD 2.6

Re: FPD 2.6 test for a drive without crashing

2015-10-24 Thread Darren
SXMgaXQgYSBtYXBwZWQgZHJpdmUgb3IgdW5jIMKgKyBzaGFyZSA/CgoKV2FybSByZWdhcmRzCkRh cnJlbgoKPGRpdj4tLS0tLS0tLSBPcmlnaW5hbCBtZXNzYWdlIC0tLS0tLS0tPC9kaXY+PGRpdj5G cm9tOiAiSm9obiBSLiBTb3dkZW4iIDxqc293ZGVuQGFtZXJpY2Fuc2VudHJ5Lm5ldD4gPC9kaXY+ PGRpdj5EYXRlOjI1LzEwLzIwMTUgIDA4OjI4ICAoR01UKzEwOjAwKSA8L2Rpdj48ZGl2

FPD 2.6 test for a drive without crashing

2015-10-24 Thread John R. Sowden
Is there is way in FPD 2.6 to test to see if a drive is working without having the program crash. I have a network where I test for a remote drive (peer to peer net) before attempting to connect to it. I set a variable (above is done in the autoexec.bat) re: the sytatus of the remove node bei