Solved

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

Posted on 2004-03-25
1
784 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

785 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