Solved

FTP Text File to a UNIX Server using VB Code in Access 97

Posted on 2004-03-25
1
780 Views
Last Modified: 2007-12-19
I have code that is creating a text file that I need to FTP to a UNIX server and I want to do this using VB code so it can run over night when the network traffic is low.  Does anyone have code that will grab the file that I create on my local drive and FTP to a UNIX server!?!?!   Thanks
0
Comment
Question by:thoff55369
1 Comment
 
LVL 1

Accepted Solution

by:
sethspearman earned 250 total points
ID: 10678250
First create a command line FTP script as follows and save it as ftpscrpt.txt:
OPEN MYFTPSITE.COM
USER MYUSER MYPASSWORD
ASC
CD orders  'change to the directory if you need to.  remove this comment from actual file.
PUT MyData.csv
DISCONNECT
QUIT

create a batch file that executes this FTP script as follows and save it as MyBat.bat:
@ECHO OFF
ftp.exe -v -n -s:ftpscrpt.txt
EXIT

From your VB code execute the batch file as follows:
Call ShellWait("MyBat.bat", vbHide)

Seth B Spearman

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now