Buen dia,

Compañeros requiero de la ayuda de ustedes para poder cambiar el file.run por la opcion ftpwi.download.

Este es el contenido de un boton:

Label.SetVisible("CountIntall", true)
Label.SetVisible("NumberInstall", true)
Progress.SetVisible("Progress1", true)
nCount = ListBox.GetCount("ListBox1");
 if nCount > 0 then 
 
    Audio.Load(CHANNEL_NARRATION, "AutoPlay\\Audio\\Voces\\iniciando.mp3", true, false);
    for nIndex = 1, nCount do
     nFile = ListBox.GetItemData("ListBox1", nIndex);
      result = File.Run(nFile, "", "", SW_SHOWNORMAL, true);
      xt = result ; 
       Application.Sleep(1000);
        rCount = tostring(nIndex)
        while #rCount < 3 do
  		 rCount = "0"..rCount
 		end
 		 Label.SetText("CountIntall", "Programas instalados: "..rCount.."/"..sCount);
 		  nProgres = ((100*nIndex)/nCount);
 		  nProgres = Math.Round(nProgres, 0);
 		  Progress.SetText("Progress1", nProgres.."%")
 		  Progress.SetCurrentPos("Progress1", nProgres);
 		       
    end
    	if xt~=true then
        Audio.Load(CHANNEL_NARRATION, "AutoPlay\\Audio\\Voces\\Completado.mp3", true, false);
        Dialog.Message("Completado", "Ha finalizado la instalación de los programas seleccionados", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
       	Progress.SetCurrentPos("Progress1", 0)
     	Label.SetText("NumberInstall", "Programas a instalar:")
  		Label.SetText("CountIntall", "Programas instalados:")
  		Paragraph.SetText("Porciento", "000%")
  		ListBox.DeleteItem("ListBox1", -1);
		Label.SetVisible("CountIntall", false)
		Label.SetVisible("NumberInstall", true)
		Progress.SetVisible("Progress1", false)
   		end  
   	   end
 if nCount == 0 and Checket then
 elseif not Checket then
  Dialog.Message("Error", "No se ha seleccionado ningún programa para instalar");
 end

        


Lo que deseo remplazar es la linea result = File.Run(nFile, "", "", SW_SHOWNORMAL, true); , por un FTPWI.Download. Pero que descargue el archivo como tal seleccionado en el tree.

Gracias