Amigos un ayuda de su parte para terminar este proyectito el cual es copiar un folder y ver reflejado el porciento en un barra de progreso para su copia.

Global Functions

function progreso (objet)
function FileProgress(Source, Destination, Copied, Total, FileCopied, FileTotal)
Progress.SetVisible("Progress1", true);


Progress.SetCurrentPos("Progress1", ((Copied/Total) * 100))
Progress.SetRange("Progress1", 0, 100);


Progress.SetText("Progress1", "Instalando.. "..Copied.."%");

return true
end end 



On Click

progreso(this)
Ruta = "D:\\ORIGEN DE COPY FOLDER\\*.*"
error = Application.GetLastError();
if (error ~= 0) then
	Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION);
elseif error == 0 then
	File.Copy(Ruta, "F:\DESTINO\\", );
end	


Progress.SetVisible("Progress1", true);

Ayudar a identificar errores, gracias.