#cs ----------------------------------------------------------------------------
AutoIt Version: 3.2.10.0
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
#include <File.au3>
Dim $dest, $source, $line, $file, $CountLines, $i, $array[3]
$file = FileOpen ("test.txt", 0)
$CountLines = _FileCountLines("test.txt" )
If $file = -1 Then
MsgBox(0, "Error", "Unable to open file." )
Exit
EndIf
for $i=0 to ($CountLines - 1)
$line = FileReadLine($file)
$array = StringSplit($line, ';', 1)
$source = $array[1]
$dest = $array[2]
ShellExecute ("c:\robocopy.exe", $source""$dest)
next