|
Home > Archive > Programming with dBASE > November 2005 > Text file transfers.
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]
| Author |
Text file transfers.
|
|
| Paul Robichaud 2005-11-15, 11:23 am |
| I have a DbasePlus system that transfers all the daily dbf records to a
FILENAME.TXT file to be sent by using ProcommPlus to another system. Then,
when the data is received at other end, it is appended to dbf files again.
Question: Is there a way to send data via DbasePlus (FTP etc) and then a way
to receive data via DbasePlus at the other end ?
p.s. Would rather be using just DbasePlus and get rid of ProcommPlus all
together.
Thanks
Paul
| |
| Paul Van House 2005-11-15, 1:23 pm |
| In article <Hkfs2vf6FHA.1184@news-server>, p.news@rogers.com says...
> Question: Is there a way to send data via DbasePlus (FTP etc) and then a way
> to receive data via DbasePlus at the other end ?
You can build a script using the standard windows FTP command to send
the dbf in binary mode.
If you destination folder on computer you are sending to can be
directly accessed by dBASE then all you need to do is have you dBASE app
copy or move the file to a processing location and go.
Otherwise you could build another FTP script to download the file as
well.
I'm sure ProcommPlus can send in binary mode as well....the earlier
DOS versions could do it.
Marshallsoft has an excellent FTP tool you can use to do everything with
your application, and there might be some stuff in the DULFP to do it as
well. I believe there is some serial communication stuff in there you
could use if you don't mind using a modem.
I may be able to cobble together a sample using Windows FTP scripts for
sending because I use it as an option in one of my programs. I think
you can get help from Windows help on the FTP command.
--
Paul Van House
remove ".removeme" for e-mail replies
Radio/TV Software and Baseball Stat Software:
http://www.binxsoftware.com
Family Home Page: http://vanhouse.binxsoftware.com
Church Home Page: http://www.ashfordumc.org
| |
|
| Paul Robichaud wrote:
> I have a DbasePlus system that transfers all the daily dbf records to a
> FILENAME.TXT file to be sent by using ProcommPlus to another system. Then,
> when the data is received at other end, it is appended to dbf files again.
>
> Question: Is there a way to send data via DbasePlus (FTP etc) and then a way
> to receive data via DbasePlus at the other end ?
>
> p.s. Would rather be using just DbasePlus and get rid of ProcommPlus all
> together.
>
> Thanks
>
> Paul
>
>
use the cc file clFTP, I think which is in the DUFLP. Then create a
simple program or function to get/put the files.
set procedure to clftp.cc addi
t = new clftp()
t.user = "myname"
t.password = "mypassword"
t.FTPgetFile("testy.txt","my.com")
close procedure clftp
You can subsitute the numerical address for my.com also. Somewhere I had
modified the cc to do multiple file transfers, but cannot locate it
right now.
Hope this helps
Glenn Fausel
| |
| Bruce Beacham 2005-11-15, 1:23 pm |
| Paul Van House wrote:
> Marshallsoft has an excellent FTP tool you can use to do everything with
> your application, and there might be some stuff in the DULFP to do it as
> well. I believe there is some serial communication stuff in there you
> could use if you don't mind using a modem.
So does FUNCky.
Bruce Beacham
| |
| Michael Nuwer [dBVIPS] 2005-11-15, 8:23 pm |
| Paul Robichaud wrote:
> I have a DbasePlus system that transfers all the daily dbf records to a
> FILENAME.TXT file to be sent by using ProcommPlus to another system. Then,
> when the data is received at other end, it is appended to dbf files again.
>
> Question: Is there a way to send data via DbasePlus (FTP etc)
You can use an FTP control to send data via dBASEPlus. The problem will
be that an FTP server is needed on the other end.
Because you are working with text files, you can alternatively use a
standard TCP control. Like the one from Microsoft. This will enable you
to send a text file (plain text or XML).
> and then a way
> to receive data via DbasePlus at the other end ?
To receive the data, a dBASE program must be able to listen for requests
made on the internet. This can be done with a WinSock control. The
Microsoft WinSock control does not work well with dbase, but the
SocketWrench control is free and works ok.
You will find an example of such a system at the link below. It includes
both the client and server forms. The server requires the SocketWrench
control; the client requires the Microsoft HTTP control (which is
already installed on most Windows systems).
http://www.nuwermj.potsdam.edu/dbas...LWebService.zip
>
> p.s. Would rather be using just DbasePlus and get rid of ProcommPlus all
> together.
>
> Thanks
>
> Paul
>
>
|
|
|
|
|