توی این لینک نحوه انجام این کار هست:
http://stackoverflow.com/questions/6...-an-ftp-server