Solved

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

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

867 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

21 Experts available now in Live!

Get 1:1 Help Now