on 10-17-2008 4:27 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Mike,
I'll follow the path you mention with the Loader & Saver Blocks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.