Page 1 of 1

What is the difference?

Posted: Thu Feb 23, 2012 4:03 pm
by Happyrever
I have tried these variations but cannot see why they all dont work, any ideas?
version 1 works
put "ftp://scali.co.uk:zxc@ftp.ajperks.co.uk ... erDrop.ico" into Serverpath
put url Serverpath into url "binfile:C:\Pt-G\WaterDrop.ico"

version 2 works
put url "ftp://scali.co.uk:zxc@ftp.ajperks.co.uk ... erDrop.ico" into url "binfile:C:\Pt-G\WaterDrop.ico"

version 3 will not work it just puts a corrupt file of 221 bytes instead of the 46.54kbytes
put "ftp://scali.co.uk:zxc@ftp.ajperks.co.uk/Water/" into Serverpath
put url Serverpath & "WaterDrop.ico" into url "binfile:C:\Pt-G\WaterDrop.ico"

Colours are only to show the differences

It makes a lot of difference in software maintenance in my case, so the answer is important.

Re: What is the difference?

Posted: Thu Feb 23, 2012 4:11 pm
by sturgis
You want it to complete the evaluation of serverpath & "WaterDrop.ico" first so try:

Code: Select all

put URL (serverpath & "WaterDrop.ico") into "binfile:C:\Pt-G\WaterDrop.ico"

Re: What is the difference?

Posted: Thu Feb 23, 2012 5:08 pm
by Klaus
Exactamente :D