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

Execute External OS Command

Hi Gurus,

Im trying to execute a OS Command inside the file adapter.

Its a .exe file which I have written. The exe file will take in 2 parameters.

I entered this in the OS Command

F:\test\run.exe test.xml output.txt

However, it seems that the command is not be executed. Am I missing anything?

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 02:08 AM

    HI,

    Instead of writting this to execute the exe. file. You can write same code in one .bat file and just call that bat file from OS commad parameter. It will work.

    Thanks

    swarup

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 04:57 AM

    Hi,

    Try the way what Swarup advised,

    If you still have other requirements with Operating System command execution then plz go through the

    SAP Note: 841704 OS Operating System Command.

    Best Regards

    Praveen

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 05:13 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 12, 2008 at 05:46 AM

    HI,

    Exe file will work put some time delay in function or check with basis people weather you have rights to execute exe file or not. If problem is same after above checks choose batch command .

    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.