Skip to Content
avatar image
Former Member

Execute MS-DOS command in Transaction

Hello,

I am copying encrypted files from the ftp server with the action: FTP Input.

This works fine, but after this action i want that it executes a dos command from xMII to decrypt the files. I have a statement like this:

raes-1.exe -d %TEST% DELFOR_20080507095802864.aes DELFOR_20080507095802864.xml

I already tried some things, but i do not use a htm page or javascript. I want only the functions in a transaction and schedule this transaction. It has to look every day if their are files. Copy and decrypt them.

When i executed through windows --> start --> run it works, so somehow it should also be possible to execute the command through MII.

Kind regards,

Nick

Edited by: N. Meuter on Oct 17, 2008 3:38 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 17, 2008 at 01:51 PM

    I have done this before with a custom action block, though if you are going to go that route I strongly recommend using something java native within your action to perform the decryption.

    Opening a portal to the OS's command line is a huge liability.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I now have create an action and i can set the action, but when i execute it it says that it is not an action Custom Action is not an action? Someone already had this error from the example?

  • avatar image
    Former Member
    Oct 21, 2008 at 08:34 AM

    Maybe someone else another idea?

    Add comment
    10|10000 characters needed characters exceeded

    • Use the link that Christian provided. Look under the version xMII 11.5.x for

      "Creating SAP xMII 11.5 User-Defined Action Blocks"

      That should give you a good outline of what is required. The implementation is a bit different for 12.0, but not by much. Read that article and then ask questions here.

      Good luck,

      Mike

  • avatar image
    Former Member
    Oct 21, 2008 at 11:45 AM

    The last question i have is wow to start xMII logic editor?

    Thank you very much, the rest i will sort out myself.

    regards,

    Nick

    Add comment
    10|10000 characters needed characters exceeded