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
- Commande AttendedTransfer
- Commande BlindTransfer
- Commande d'appel
- Commande ForwardCall
- Commande ListCallHistory
- Commande Hangup
- Commande Hold
- Commande ListActiveCalls
- Commande ListExtensions
- Commande ListExtensionTypes
- Commande Play
- Commande Record
- Commande Request
- Commande SendDTMF
- Speak
- Commande Unhold
- Commande ReceiveMessage
- Commande SendEmail
- Commande SendMessage
- Commande SendSMS
- Commande Array
- Commande Beep
- Commande Delay
- Commande DeleteFile
- Commande ForEach
- Commande GoTo
- Commande MoveFile
- Commande Reject
- Commande Route
- Commande SendAlarmNotification
- Commande SendMsg
- Commande UserInput
- Commande Var
- Commande WaitForMsg
- Commande CallSetup
- Commande Exit
- ListAddressbokkContacts
- Commande ListAddressbookNames
- ReceiveAlarmNotification