sakaci_79 Posted December 5, 2012 Share Posted December 5, 2012 (edited) 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 December 5, 2012 by sakaci_79 Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted December 5, 2012 Share Posted December 5, 2012 Kod demetini tam verebilirsen modlarımız daha iyi yardımcı olabilir. Quote Link to comment Share on other sites More sharing options...
sakaci_79 Posted December 5, 2012 Author Share Posted December 5, 2012 tşkler delete komutunu yazmayı unuttum kaç gündür olmuyodu başardım ama işte kurmadan hemen siliyor Quote Link to comment Share on other sites More sharing options...
sakaci_79 Posted December 5, 2012 Author Share Posted December 5, 2012 Application.Sleep(2000) şöyle bir kod buldum bu işe yararmı 6 mb nin indirceği zaman nekadar olurki Quote Link to comment Share on other sites More sharing options...
Sistemci Posted December 5, 2012 Share Posted December 5, 2012 kodların tamamını vermeden yardımcı olamayız kardeşim büyük ihtimalle kullandığın kod satırı hatalı Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted December 5, 2012 Share Posted December 5, 2012 Aklıma şöyle bir fikir geldi mesela indirilen dosya boyutunu progress e yazdırırsın sonra getcurrentpos 100 olunca sildirirsin? Quote Link to comment Share on other sites More sharing options...
sakaci_79 Posted December 5, 2012 Author Share Posted December 5, 2012 (edited) arkadaşlar yanlış anlamayın bu hack meck değil öyle şeylerlede işim olmaz Edited December 7, 2012 by sakaci_79 Quote Link to comment Share on other sites More sharing options...
sakaci_79 Posted December 5, 2012 Author Share Posted December 5, 2012 nightmare3519 tşk ederim güzel fikir aslında bi deneyeyim sonucu söylerim :D Quote Link to comment Share on other sites More sharing options...
sakaci_79 Posted December 5, 2012 Author Share Posted December 5, 2012 yok öylede yaptım olmadı Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted December 5, 2012 Share Posted December 5, 2012 Ben anlatamadım özür dilerim :D İndirilen dosyayı aynı kurarmış gibi progress e bağlarsın mesela ne kadar indiyse o kadar progress ilerler gibi.. Quote Link to comment Share on other sites More sharing options...
sakaci_79 Posted December 5, 2012 Author Share Posted December 5, 2012 bende uğraştım uğraştım olmadı diyom :D anlaşıldı yaa kimse yardımcı olmayacak gene iş başa düştü galiba :D Quote Link to comment Share on other sites More sharing options...
xarax Posted December 5, 2012 Share Posted December 5, 2012 File.Run komutunun sonundaki "false" yazan yeri "true" yap. Bu komutla çalıştırdığın dosyanın işi bitene kadar alttaki koda geçmez bu şekilde. İşi bitince silme komutu işler ve dosya silinir. Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted December 6, 2012 Share Posted December 6, 2012 Evet evet waitforrun diye bişey var file.run komutunda onu true yap yeter Quote Link to comment Share on other sites More sharing options...
HalilYanar Posted December 6, 2012 Share Posted December 6, 2012 (edited) 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 December 7, 2012 by HalilYanar Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.