MoveFile command
The MoveFile command is used for moving your source file into a specified target directory. It is widely used as a Voicemail functionality when you would like to move your listened message into the 'old messages' directory.
Parameters
Parameter name | Example value | Description | Mandatory |
SourceFile | D:/test.mp3 | The file to be moved. | yes |
TargetDirectory | D:/test/ | The destination directory. | yes |
OzML example
This simple script iterates through the 'voicemails' array by using the ForEach command. At every iteration, the current item of the array will be moved to the directory that was provided in the TargetDirectory attribute.
<?xml version="1.0"?> <Response> <ForEach source="voicemails"> <MoveFile SourceFile="$item.message" TargetDirectory="$oldmessagepath"></MoveFile> </ForEach> </Response>
More information
- AttendedTransfer command
- BlindTransfer command
- Call command
- ForwardCall command
- ListCallHistory command
- Hangup command
- Hold command
- ListActiveCalls command
- ListExtensions command
- ListExtensionTypes command
- Play command
- Record command
- Request command
- SendDTMF command
- Speak
- Unhold command
- ReceiveMessage command
- SendEmail command
- SendMessage command
- SendSMS command
- Array command
- Beep command
- Delay command
- DeleteFile command
- ForEach command
- GoTo command
- MoveFile command
- Reject command
- Route command
- SendAlarmNotification command
- SendMsg command
- UserInput command
- Var command
- WaitForMsg command
- CallSetup command
- Exit command
- ListAddressbokkContacts
- ListAddressbookNames command
- ReceiveAlarmNotification