Skip to Content
avatar image
Former Member

Renaming a File

Hi,

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?

Thanks.

Francois Rioux.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 17, 2008 at 03:56 PM

    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,

    Mike

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 17, 2008 at 05:21 PM

    Thanks Mike,

    I'll follow the path you mention with the Loader & Saver Blocks.

    Add comment
    10|10000 characters needed characters exceeded