cancel
Showing results for 
Search instead for 
Did you mean: 

OS Level Script to Copy and Rename file

Former Member
0 Kudos

Deal All,

I am looking for script which is to Copy, Delete from one FTPs' folder location and Paste,Rename to another Folder location in the same FTP server itself.

Ex: ABC.txt is present in /app1/xi/temp

need to move to /app1/xi/interfaces with actual.txt name

Regards

Vamsi

Edited by: Vamsi Krishna on Feb 3, 2010 9:23 PM

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>FTPs' folder

os level commands on file adapter do not work with FTP - you need to find another way

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi Michal,

Thanks for updating, by this we decided to run these OS commands using Shared Folders with our network.

Could you please let us know how to achieve the above options

Regards

Edited by: Vamsi Krishna on Feb 5, 2010 4:57 PM

Answers (2)

Answers (2)

GabrielSagaya
Active Contributor
0 Kudos

Please check this WIKI

http://wiki.sdn.sap.com/wiki/display/XI/SAPXIFileAdapterOSCommandLine+Feature

Former Member
0 Kudos

Hi,

Will this works with FTP????because here it is mentioned and briefed with FTP example

But Michal was saying that OS commands will not work for FTP

Regards

Former Member
0 Kudos

I used a lot for the ftp executing the steps specified in the txt file. But I never used in the file adapter yet. So i am guessing it should work in the adapter. Basically the batch file or shell script execute the ftp commands specified in the txt file, e.g. connection, put, delete...etc..

Regards

Liang

former_member206760
Active Contributor
0 Kudos

Hi vamsi,

if u are just doing a cut paste. you can do that in XI without IR objects . u can directly create ID objects and give a dummy interface and namespace wherever required..