Jump to content

Download İşleminde İndirme Yeri Seçme


prototype
 Share

Recommended Posts

Arkadaşlar aşağıdaki kodda kırmızı renkte belirttiğim yeri değiştirince indirme işlemini başlatmıyor. Sabit Autoplay / Docs klasörüne indiriyor ben bunu c:/WTR şeklinde yapmak istiyorum ama olmuyor bi yardım ederseniz sevinirim. Olmazsa eğer proje dosyasını paylaşırım teşekkürler..

[quote]
session = 0;

strURL = "http://warrockTR.com/WarRock/War_Rock_20100921.exe"
DestFile = _SourceFolder.."[color="#FF0000"]\\AutoPlay\\Docs\\War_Rock_20100921.exe[/color]"


function Download.OnProgress(tblData)

if ( tblData ~= nil) then

Progress.SetCurrentPos("Progress1", tblData.Percent);
Progress.SetText("Progress1", tblData.Percent.." %");
Input.SetText("Input1", tblData.Percent);
local strinfo = string.format("İndiriliyor .. %s / %s - Hız : %d Kb/s",String.GetFormattedSize(tblData.Loaded, FMTSIZE_AUTOMATIC, true),String.GetFormattedSize(tblData.Total, FMTSIZE_AUTOMATIC, true), tblData.CurrentSpeed);
Label.SetText("Label1", strinfo);

end

end


function Download.OnComplete(tblData)

Download.Delete(tblData.Session);
Label.SetText("Label1", "Yükleme tamamlandı..");

end

function Download.OnError(tblData)

Download.Delete(tblData.Session); -- Important !! - do not forget to call this first
Label.SetText("Label1", "Yükleme Hatası..");

end
[/quote]
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...