Jump to content
Macro Express Forums

Ftp Files Backup


Recommended Posts

I am a new user with Macro Express and trying to create a macro that will send the content of a directory over a FTP site. I went through the entire process, from Change Directory, FTP Site connect and FTP Send but The data is not coming across. I added a few pause to the process but is there a simple way to follow through and display in a windows (or something) the result of each step so I know what is not working!!

 

Thanks for any suggestions.

 

~ Gerard

Link to comment
Share on other sites

Each FTP command puts the result into a variable. You can either display the variables, append each variable into one, or append the variables to a log file. Here are a few ideas:

 

// Display results of each FTP command separately

// Connect
FTP Connect to ftp.aserver.com
Text Box Display: %T1%
// Change to a directory
FTP Change Directory: "/xxx/xxxxx/xxxx/xxxxxx/ftptest"
Text Box Display: %T1%
// List the contents of the ftptest directory
FTP List Directory
Text Box Display: %T1%
// Change to the YYY directory
FTP Change Directory: "/xxx/xxxxx/xxxx/xxxxxx/ftptest/YYY"
Text Box Display: %T1%
// List the contents of the xxxxxxx/YYY directory
FTP List Directory
Text Box Display: %T1%

// Disconnect
FTP Disconnect

Put results from each FTP command in a different variable, display all of them at the end

// Connect - put result in T1
FTP Connect to ftp.aserver.com
// Change to a directory - put result in T2
FTP Change Directory: "/xxx/xxxxx/xxxx/xxxxxx/ftptest"
// List the contents of the ftptest directory - put result in T3
FTP List Directory
// Change to the YYY directory - put result in T4
FTP Change Directory: "/xxx/xxxxx/xxxx/xxxxxx/ftptest/YYY"
// List the contents of the ftptest/YYY directory - put result in T5
FTP List Directory
// Disconnect
FTP Disconnect
Text Box Display: Display results in T1, T2, T3, T4 and T5

Put results from each FTP command in a different variable, display all of them at the end

//Connect
FTP Connect to ftp.aserver.com
Log Message to Default Error Log
// Change to a directory
FTP Change Directory: "/xxx/xxxxx/xxxx/xxxxxx/ftptest"
Log Message to Default Error Log
// List the contents of the ftptest directory
FTP List Directory
Log Message to Default Error Log
// Change to the YYY directory
FTP Change Directory: "/xxx/xxxxx/xxxx/xxxxxx/ftptest/YYY"
Log Message to Default Error Log
// List the contents of the ftptest/YYY directory
FTP List Directory
Log Message to Default Error Log
// Disconnect
FTP Disconnect

// Results are in the log file

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...