Intelligent Automation & Macro Software  

Go Back   Tethys Solutions Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-20-2007, 05:49 AM
rlaliberte rlaliberte is offline
Junior Member
 
Join Date: Jun 2007
Posts: 17
Default Command line ftp, via batch file

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?
Reply With Quote
  #2 (permalink)  
Old 06-21-2007, 09:21 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 486
Default

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!.
Reply With Quote
  #3 (permalink)  
Old 06-21-2007, 10:45 AM
rlaliberte rlaliberte is offline
Junior Member
 
Join Date: Jun 2007
Posts: 17
Smile

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....
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 05:06 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved