system() in carbon & FTP

Hey, I'm trying to establish a connection to FTP in carbon using the system() function, but I'm not sure how to supply my FTP password in the same command.

For example, I have:

system("ftp myusername@mydomain.net");

It then obviously prompts for the password, so I tried this (below) but it doesn't work either.

system("ftp myusername@mydomain.net; mypassword");