Skip to Content
0
Jul 28, 2016 at 06:36 PM

How to move the file from FTP server to Windows shared directory?

334 Views

Hi all,

Can anyone help on this,

I want to move the file (it could me xml or flatfile) from FTP server '\ftp.xxx.com' to windows directory '\C'.

I tried by moving from shared directory to another directory by using below command and got succeeded.

exec('cmd.exe','move "[SOURCE PATH]\[SRCFILE NAME] " "[TARGET PATH]\[TARGET FILE NAME]"');

but how to move from FTP server to windows directory?

Thanks,

Vijay