Rename File Write Action
NiCE.Library.W.Rename.File.WA (WriteActionModuleType)
Write Action to rename a file on Windows Computer
Element properties:
Member Modules:
Source Code:
<WriteActionModuleType ID="NiCE.Library.W.Rename.File.WA" Accessibility="Public" Batching="false">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="TargetSystem" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="Folder" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="OldFileName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="NewFileName" type="xsd:string"/>
</Configuration>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<WriteAction ID="InvokeWA" TypeID="System!System.CommandExecuter">
<ApplicationName/>
<WorkingDirectory>$Config/Folder$</WorkingDirectory>
<CommandLine>move /Y "$Config/OldFileName$" "$Config/NewFileName$"</CommandLine>
<TimeoutSeconds>600</TimeoutSeconds>
<RequireOutput>false</RequireOutput>
</WriteAction>
</MemberModules>
<Composition>
<Node ID="InvokeWA"/>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.BaseData</OutputType>
<InputType>System!System.BaseData</InputType>
</WriteActionModuleType>