Skip to Content
author's profile photo Former Member
Former Member

Script Execution in File Adapter

Hi,

I have the following scenario,

There are two FTP folders(say FTP_SingleFile and FTP_MultipleFiles).

At any point of time, there would be only one file in FTP_SingleFile and n number of files in FTP_MultipleFiles.

A sender communication channel picks the file from FTP_SingleFile and pushes the file to a BPM.

Once my BPM receives this file from FTP_SingleFile, all the files in FTP_MultipleFiles need to renamed from *.tab to *.txt extension.

I am just thinking if this can be achieved by the operating system command before/after Message processing. I have never tried this though. I would appreciate if someone could guide me through this.

Thanks,

Senthil

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 05, 2009 at 08:57 AM

    Operating system command might not be usefull here as you are connecting to remote FTP.

    For the File Adapter transport protocol "FTP", the operating system command is NOT executed on the FTP server, but on the server hosting the Adapter Engine.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Tarik,

      Thanks for the reply.

      However, my requirement is to rename all the files in the given folder..and I wouldnt be knowing the file names.

      I am under an assumption that batch files cannot be exexuted on a FTP location to change the file extensions of all files in the given directory.

      Or in other words rename *.tab *.txt

      would not work on a FTP location.

      Pls correct me if i am wrong.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.