FTP transfer problem Please help me

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
noelhcar
Newbie
Posts: 4
Joined: Sat Jun 29, 2013 12:33 pm

FTP transfer problem Please help me

Post by noelhcar » Sat Jun 29, 2013 12:42 pm

Hi All,

I am trying to transfer a file from my pc to my server with the script below. All the process goes well according to Macro Scheduler but when I check the result in the server I only get the name of the file and a file size of Cero: It transfered the name but none of the data in the file. Tried to do it with a picture and a .swf file but it didn't work with neither.

My ftp filezilla is set to binary transfer and by doing it this way the files are transferred correctly.

Please help :)

input>swfname,Choose the SWF file to upload

ExtractFileName>swfname,namecalculatorwithext
let>BEhostfile=%namecalculatorwithext%
//extracts the name of the file remving the extension
Position>.,%namecalculatorwithext%,1,extension
let>extension22=extension-1
MidStr>%namecalculatorwithext%,1,extension22,namecalculator

let>password=xxxxxx
let>user=bengixxxx
//binary transfer: I
FTPPutFile>better-engineers.com,user,password,21,localfilebe,bedirectory,BEhostfile,I
mdl>FTP_RESULT

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Jul 01, 2013 1:31 pm

Hi,

Not sure why this would be but your script doesn't show the values of localfilebe and bedirectory - can you supply your full script, or at least more of it, showing these variables?

Also which exact version of Macro Scheduler are you using and what is the flavour of FTP server?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts