cancel
Showing results for 
Search instead for 
Did you mean: 

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

vijayb
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member241220
Participant
0 Kudos

Hi Vijay,

Using Batch Script you can move files from FTP Server to your windows directory.

Thanks

Murali.

vijayb
Participant
0 Kudos

Hi Murali,

Could you please explain in detail?

Thanks,

Vijay

former_member241220
Participant
0 Kudos

Vijay,

Please go on throw below link

Copy files from FTP server to local directory? - Stack Overflow

Regards,

Murali.

vijayb
Participant
0 Kudos

Hi Murali,

Thank you for the reply, could you please let me know how to implement that in BODS?

Vijay

former_member241220
Participant
0 Kudos

Hi Vijay,

Copy the code and paste in txt file and save it in .bat format, call that .bat file in BODS using exec function.

Thanks]

Murali.