gerard@tsisupport.com Posted September 9, 2007 Report Share Posted September 9, 2007 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 Quote Link to comment Share on other sites More sharing options...
kevin Posted September 10, 2007 Report Share Posted September 10, 2007 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.