Back

Topic

[KB351]Sending files on an FTP server using DOS commands

14 years ago
By RM
Options
Print
Applies to:

Operating systems


Summary:

Sending files on an FTP server using DOS commands

Details:

The server FTP has to allow writing in the selected directory.

Example of the daily reports with a CSV format created by the program LIB\utilities\p\reportv1.prg.

  1. Create a file pcvue.cmd which will be launched by the SCADA Basic instruction, Application, at a set time.
    For example: for a connection to the server ftp.arcinfos.com
    ftp -n -s:D:\PCVue.ftp ftp.arcinfos.com
  2. Create the file in this example D:\Pcvue.ftp containing the following commands.
    • User is followed by the name of user and the password
    • ascii indicate an ASCII transfer
    • cd selects the FTP directory
    • mput make copies out  of one or several files
    • This technique also works for reading use mget in that case
    • bye disconnects

User
Name
Password
ascii
promp
cd destination directory
mput path to myprojec\ttp\*.csv
bye

Attached to this article is a document with some ftp commands. (In French)

Download attachments: pcvue_avec__FTP.doc


Created on: 30 Dec 2010 Last update: 04 Sep 2024