Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Renaming a File


We're using MII 12.0.4 on MS Server 2003.

I'm trying to use MII to rename a file. I'll also need to move & copy files.

I see File I/O action blocks to create & delete files but no support for renaming or moving them. Am I missing something?

Alternately, can I call a command shell from within MII? If so, how do I check the output (return code) of the command or script?


Francois Rioux.

Former Member

Hi Francois,

There is no direct renaming or copying action blocks. Depending upon the content, you will need to use a combination of Web - <content-type>_Loader and Web - <content-type>_Saver to copy and rename files. You would also need to use the File I/O - Delete File action block to delete a file after copying to accomplish a move.

Other developers have gone so far as to build custom action blocks to accomplish this task. I am not sure it is really worth it, but it would be a simple one to create and implement.

Good luck,


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question