Article ID: 10202
HOWTO: FTP from a Data Processing Script
HOWTO
Applies To: ITScriptNet V3

Write a post processing script to initiate an FTP transfer.

DETAILS

Enter this sample script into the Before Processing or After Processing Script (Program-> Configure Receive->Edit Scripts...->Before/After Processing).

Sample Script (Be sure to change <Fully Qualified Path> to a valid path to the batch file ( i.e. c:\Temp ))

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run("<Fully Qualified Path>\ftp.bat")
Set WshShell = Nothing

Example ftp.bat file (Be sure to change <Fully Qualified Path> to a valid path to the ftp txt file ( i.e. c:\Temp ) and place file in same folder as program ITB)

=================================
ftp.exe -s:<Fully Qualified Path>\ftp.txt xxx.xxx.xxx.xxx
=================================
pause


Example ftp.txt file (Be sure to change<Fully Qualified Path> to a valid path to the collected data file ( i.e. c:\Temp ) and place file in same folder as program ITB)

Anonymous
guest
put <Fully Qualified Path>\ftpTest.txt
quit

Other precautions may need to be taken to ensure a successful FTP transfer, which is outside the scope of this sample, and may require your IT department's assistance.

This article last updated: 3/26/2009 10:18:12 AM
Please help us improve the Knowledge Base by rating this article.
    © 1997-2026 Z-Space Technologies - a BCA Innovations Company - All rights reserved