Here is my script
Here is the resulting log
What's going wrong?
FTP Script
- # Get parameters
- # Note: Parameter 1 is the path to the scriptFTP.exe file
- # Parameter 2 is the scriptFTP script to run
- #
- #
- # Parameter 9 supports *NONE as American Eagle does not want zipped data, where Topgraf (BIOF) does
- #
- #
- # Parameter 10 supports *NONE, specifiy *NONE is *NONE is specified for parameter 9
- #
- # Script Defaults not passed as parameters
- #
- # Set Logfile using next number parameter
- GOTO :ERROR
- $attempts = 0
- # Connect to the FTP server using
- # the values stored in the variables.
- # The value returned from OPENHOST is
- # stored in the variable $resultvalue.
- :CONNECT
- $attempts = $attempts + 1
- GOTO :ERROR
- GOTO :CONNECT
- GOTO :ERROR
- GOTO :ERROR
- $command = "del ".$ftpFileToZip
- $command = $javaJarLocation."/jar -cfM ".$ftpFileToZip." ".$ftpFileToSend
- GOTO :ERROR
- $ftpFileToSend = $ftpFileToZip
- GOTO :ERROR
- GOTO :THE_END
- :ERROR
- :THE_END
Connecting... Attempt number 1
OPENHOST("ftp.americaneagle.com","userid",******)
Connecting to ftp.americaneagle.com
Connected.
LOCALCHDIR("E:\UserExport\AmericanEagle")
Changing current local directory to E:\UserExport\AmericanEagle
PUTFILE("ITEMS.txt")
Uploading................. ITEMS.txt
***** PUTFILE Error #17450: Cannot rename the uploaded file from ITEMS.txt.part to ITEMS.txt.
***** The server said: Rename Failed: File locked
PUTFILE Error = 17450
********************************************************************
ERROR: AE FTP File PUT Transfer Failed
********************************************************************
What's going wrong?
Last edited by stank1964 on 14 Sep 2012, 16:37, edited 1 time in total.
liked Script FTP? Try our other product Email Parser