Jump to content

Autoplay Media Studio 8 File.delete Komutu


sakaci_79
 Share

Recommended Posts

merhaba arkadaşlar ftp den dosyayı indiriyor kuruyor fakat kurabaşlarken siliyor kurulumdan sonra silmesini istiyorum böyle bir kod lazım yardımlarınızı bekliyorum

 

kodlar burda bi buton var ona basınca ftpden inip kuracak kurduğu zaman silecek

 

HTTP.Download("http://www.yasak olduğu için vermem.t/s/d.exe", "C:\\Downloads\\d.exe", MODE_BINARY, 20, 80, nil, nil, nil);

result = File.Run("C:\\Downloads\\d.exe", "", "", SW_SHOWNORMAL, false);
File.Delete("C:\\Downloads\\d.exe", false, false, false, nil);

Edited by sakaci_79
Link to comment
Share on other sites

Nightmare'nin dediğini On Timer'de kullanabilirsiniz. 

deneme = Progress.GetRange("Progress1");
 

if deneme = 100 then

 

File.Delete .....

 

end

 

Şuan yanımda ams yok o yüzden böyle.

 

 

Peki dosya yüklemesini nasıl progress'e entegre yapıcağız ?

 

Algoritmasını oluşturalım;

 

On timer :

 

A1 : Dosya boyutunu al.

A2 : Dosya boyutunu 100'e böl.

A3 : Dosya boyutuna göre Progress Bar'a yazdır.

 

-------------------------------------------------------

 

sBoyut = File.GetSize(Gelicek kodlar);

sBol = String komutu ile yapılacak kodlar.

Progress.SetRange("Progress1", sBol);

 

(Yanımda Ams yok bilginize.)

Edited by HalilYanar
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...