Home Page
        Orders     Downloads     Support     Contact     Deutsch
ZOC Terminal is a professional SSH Client and Terminal Emulator for Windows and macOS.
PyroBatchFTP Online Help Topic:

Your Your First Automated File Transfer Step by Step

The following are step by step instructions to do an automated file transfer via PyroTrans.

       
1. Create a PyroBatchFTP script
 

Select File, Edit in PyroBatchFTP and enter a filename, e.g. TEST.CMD and click Open. This will open an editor. Enter the following commands and replace the parts between <brackets> with corresponding values for your setup (see notes below):

Connect -f "ftp.ger.emtec.com"
LocalChDir. :"<datafolder>"
RemoteChDir "pyrotrans/batchftpdemo"
Get "pyrotrans.gif"
Disconnect

<datafolder>: A drive and directory on your computer, e.g. LocalChDir "C:\TEMP"

Check Help, Script Commands to find out what these commands exactly do.

2. Test the script manually
 

Select File, Execute and open the TEST.CMD script. It will immediatey start to run and you will see the progress in the PyroBatchFTP window. If you entered everything correctly, you will see green checkmarks for each command in the main window and a final status of #200 OK in the PyroBatchFTP status area at the bottom of the window. And, of course, you will find the file pyrotrans.gif in your data directory.

3. Prepare the script for automatic execution
 

Edit the script again (File, Edit, TEST.CMD, Open) and add a line containing TerminateAfterScript at the bottom. Your script will now look somewhat like this:

Connect -f "ftp.ger.emtec.com"
LocalChDir "C:\TEMP"
RemoteChDir "pyrotrans/batchftpdemo"
Get "pyrotrans.gif"
Disconnect
TerminateAfterScript

If you save and run the program now, the PyroBatchFTP window will close after successful execution of the script.

4. Run the script automatically
 

Select "Run" from the Windows start menu and Type
"c:\program files\pyrobatchftp\pyrobatchftp" /EXEC:test.cmd
Then click OK.

You will now see the PyroBatchFTP window appear, run the script and disappear after the script is complete.

You can also use the command above to create a desktop icon (right click on Windows Desktop, New, Shortcut, then enter the command) or from the Windows scheduler to run the script at given time (or you can schedule the script from within PyroBatchFTP's internal scheduler).

PyroBatchFTP can be started the same way from a MS-Access-Basic as Call Shell '"c:\program files\pyrobatchftp\pyrobatchftp" /EXEC:test.cmd' or from an C++ Application via CreateProcess Windows API call.

 

 
← Back to Table of Contents

 

Downloads
Orders
Contact
Support
Terms of Use
Privacy Policy
pixel