Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Fox > Re: Copy file t...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 838 of 861
Post > Topic >>

Re: Copy file to a remote IP address

by sanforized <sanforized@[EMAIL PROTECTED] > Apr 12, 2008 at 12:06 PM

shah wrote:

> Hello,
> 
> What is the best way to achieve this in VFP.
> 
> At end of each day, I need the user to send a re****t file (text file
> with re****t data) to a remote location (remote IP address or a FTP
> site). Emailing as an attachment is not a convient option  as some
> servers do not allow any attachments to go through.
> 
> I have seen some application where a copy of the data from a local
> machine is directly accessed by a remote application. In the
> Settings.ini a IP address is configured and this allows the
> application to direct the file to that location.
> 
> Any ideas if this can be done in VFP.
> 
> Thanks in advance
> 
> Shah

In unix (perhaps linux as well) there is a way to redirect a
text file to become the body of an email, and achieve this
using a single command line that could be automated as a
crontab function. There's no reason an ordinary ascii text
file ever needs to be sent as an attachment.

If you don't have a unix system handy you can start here:

http://www.hmug.org/man/1/mail.php

If you don't have a unix or linux system available on your
local network you could always get someone to compile gnu's
freely available in source code mail program for your
particular OS.

If you're using windows I've done an automated function
[control panel > Scheduled Tasks] to automatically ftp
data files at a specific time of day. You'll need to
create a batch file to bring up ftp, and a text file
that the batch file reads in order to perform the the
specific sequential functions you'll need. Mine logs
onto a unix system with name and password, cd's to the
desired directory, proclaims binary mode, then mget's
the desired files by name, and forces a disconnect
when the transfer is complete.

That system has been working like a dream for me for
over 5 years.
 




 2 Posts in Topic:
Copy file to a remote IP address
shah <shahjagat@[EMAIL  2008-04-08 09:47:23 
Re: Copy file to a remote IP address
sanforized <sanforized  2008-04-12 12:06:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 10:43:00 CST 2008.