cancel
Showing results for 
Search instead for 
Did you mean: 

Renaming a File

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

agentry_src
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks Mike,

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