![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
I have a command line ftp script, it works great... but I have to launch it from a Windows' shortcut, otherwise it simply will not run. AA does not seem to want to launch the shortcut, preferring to run the .bat file directly, which leads to the the ftp script failing to function because the window closes immediately after launching. I attempted to replicate the ftp script using AA's ftp automation, but it appears impossible. here's the script, sanitized for privacy open xxx.xxx.xxx.xxx xxxx user xxxxx.xxxx xxxxxx lcd v:\blahblah put clbkmvfe.txt pccumvfe, E,0,300,200,978,2800 quit Any ideas how to use AA's ftp, or how I can get the .bat window to stay open without launching from the Window's shortcut, or how to get AA to actually launch from the shortcut? |
| |||
|
Hello, I did try replicating your scenario from my end. In fact there are 2 ways wherein you can successfully upload your files through ftp. 1. We can execute ftp commands stored in the batch file, however for that we need to be in the same folder where the batch file is stored. For eg. We save the batch file in C:\ drive. Now when we go to command prompt to run the batch file we need to ensure that prompt is C:\ if not then you need to go in parent directory and select C:\ drive. Once you are in C:\ drive you can run the batch file. Following a specimen you can refer to and try from your end and it should work. C:\Users\MyPC\Desktop > cd\ C:\> ftp -s:trial.bat 2. On the other hand you have a simple option to execute this task with automation anywhere. You can implement the following steps to create a task to upload files through Automation Anywhere. I. Select Connect option in FTP from the command list on the left hand side and write the ftp server address, username & password in the relevant fields. II. You can check your ftp connection by click on the Test connection button on the lower left hand side of the window. III. Once you are connected you can copy files by using the PUT command and specifying the file location. After this you can save the task and the FTP command should work. However you have any further queries you can feel free to write back with relevant error messages if any. Here are some online sample tasks on how ot use FTP commands http://www.tethyssolutions.com/autom...neralITprocess Hope that helps!. |
| |||
|
ok... what worked: open cmd.exe, navigate to the directory where the batch file is, run the batch file in the cmd window. What did not work: your advice above ;-) I swear the first option SHOULD have work, and I don't know why I didn't try it, but ftp was not reading the script as it should have and was not connecting to the proper place. Where in the AA FTP automation tasks could I possible add the formatting string that goes at the end of the file name? Would I just put that in the file name? I'm not sure that would work.... |
![]() |
| Thread Tools | |
| Display Modes | |
| |