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

Sender File CC Command Line problem

Hi friends!

I have a problem running batch in command line of file SCC.

I need to zip the file before sending it. So I created the batch file doing zip to my file. When I running it from CMD it's work perfect. But from XI it is not working.

I tried writing in the command line:

 cmd.exe /c "\\files\XIFiles\XI3\Nielson\nielson_zip.bat 1.csv"

Or this:

 \\files\XIFiles\XI3\Nielson\nielson_zip.bat 1.csv

What can be the problem?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2010 at 07:25 AM

    Hi,

    You can use the AF Module PayloadZIpBean for the same. You can zip your file before sending it using this standard AF Module available in SAP PI.

    Please take a look at the below Links:

    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework

    http://help.sap.com/saphelp_nw04/helpdata/en/45/da9358a1772e97e10000000a155369/content.htm

    Or

    IF you want to use your batch file to zip the file for you, please give the relative path of the batch file in the place where you mention the OS command to be executed before File processing.

    eg: "E:\usr\src\Folder\zip.bat"

    Here i have assumed that zip.bat is the batch file which will be used for zipping and it is available under "E:\usr\src\Folder" folder on the PI Server with Windows OS.

    I hope this will certainly help.

    Regards, Gaurav.

    Edited by: Kumar Gaurav on Oct 13, 2010 9:31 AM

    Add a comment
    10|10000 characters needed characters exceeded

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.