WolfmanTR_ Posted December 6, 2012 Share Posted December 6, 2012 (edited) arkadaşlar,yapacak bir iş bulamadğım için bir doya kopyalayıcı yapayım dedim, şimdi File.Browse ile seçtiğim dosya inputa yazdırıyor.Folder.Browse ile de Label e yazdırmak istiyorum ama yazdıramadım. birde dosyayı kopyalad diyor ama kopyalamıyor(seçilen konuma.) kodlar Global function dosya () ProSec = Dialog.FileBrowse(true, "Program Seçiniz...", _DesktopFolder, "Tüm Dosyalar", "", "dat", true, false); Input.SetText("Input1", ProSec[1]); xButton.SetEnabled("xButton1", true); if ProSec[1] ~= "CANCEL" and ProSec[1] ~= nil then end end function konum() sProSec = Dialog.FolderBrowse("Kopyalanacak Yeri Seçin", "_DeskopFolder"); --Label.SetText("Label2", sProSec[1]); if sProSec[1] ~= "CANCEL" and sProSec[1] ~= nil then end end function kopyala() File.Copy("..ProSec..", "..sProSec..", true, true, false, true, nil); Dialog.Message("Dosya", sProSec.." konumuna taşındı", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); end Edited December 6, 2012 by wolfman.tr_ Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted December 6, 2012 Editor Share Posted December 6, 2012 File.Copy("..ProSec..", "..sProSec..", true, true, false, true, nil); burada sen değişkenleri tanımlamışmısın kardeş bi bakı ver istersen diğer kodlarında yanlış tamamen. File.Copy(ProSec,sProSec, true, true, false, true, nil); Doğrusu bu şekilde olacak. Quote Link to comment Share on other sites More sharing options...
WolfmanTR_ Posted December 6, 2012 Author Share Posted December 6, 2012 arkadaşlar, sorunu hallettim ama şu folder.browse ile seçilen klasörün konumunu bir türlü yazdırmayı beceremedim.(.ini ' ye) Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted December 7, 2012 Share Posted December 7, 2012 sProSec[1] yerine sadece sProSec yazacaksin klasor icin. Return kisimlarini iyi oku. Quote Link to comment Share on other sites More sharing options...
superhalit Posted December 8, 2012 Share Posted December 8, 2012 küçük bir örnek hazırladım buyur link: http://www.mediafire.com/?ydzmccekyfyqcna Quote Link to comment Share on other sites More sharing options...
WolfmanTR_ Posted December 8, 2012 Author Share Posted December 8, 2012 sProSec[1] yerine sadece sProSec yazacaksin klasor icin. Return kisimlarini iyi oku. abi forum'da yokluğun hissediliyor :rolleyes: Quote Link to comment Share on other sites More sharing options...
WolfmanTR_ Posted December 13, 2012 Author Share Posted December 13, 2012 arkadaşlar, ben file.browse ile seçilen dosyaları alt. alta yazdırıyorum ama Konum=C\\asd.exe diye yazmıyor sadece Konum=asd yazıyor onu nasıl yaparım? Not: sorun :String.SplitPath(v); dan kaynaklanıyor, String.SplitPath(v); yenine ne yazmalıyım ? function dosya () nSecilen = Dialog.FileBrowse(true, "Program Seçiniz...", _DesktopFolder, "Tüm Dosyalar", "", "dat", true, false); if (nSecilen[1] ~= "CANCEL") and (nSecilen ~= nil) then for i,v in pairs(nSecilen) do Boyut = File.GetSize(v); YenidenHesapla = String.GetFormattedSize(Boyut, FMTSIZE_AUTOMATIC, true); Konum = String.SplitPath(v); Input.SetText("Input1", nSecilen[i]); xButton.SetEnabled("xButton1", true); INIFile.SetValue("AutoPlay\\Docs\\data.ini", "Dosya", "Konum"..i,""..Konum.Filename..""); end end end Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted December 13, 2012 Editor Share Posted December 13, 2012 INIFile.SetValue("AutoPlay\\Docs\\data.ini", "Dosya", "Konum"..i,Konum.Filename..Konum.Extension"); Bununla değiştir kodlamalarda çift tırnakları hatalı kullanıyorsun hep. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted December 13, 2012 Share Posted December 13, 2012 ""..Konum.Filename.."" Bu şekilde değişken vs. kullananları çok gördüm. Bu şekilde yanlış bir kullanımı nereden nasıl öğrendiler bilmiyorum. Bir çok kullanıcıda rastladım buna. Yapmayın arkadaşlar. Quote Link to comment Share on other sites More sharing options...
WolfmanTR_ Posted December 13, 2012 Author Share Posted December 13, 2012 INIFile.SetValue("AutoPlay\\Docs\\data.ini", "Dosya", "Konum"..i,Konum.Filename..Konum.Extension"); Bununla değiştir kodlamalarda çift tırnakları hatalı kullanıyorsun hep. yazdırdı ama nerede olduğunu yazdırmadı :mellow: [Dosya] Konum1=CONFIG.TXT Konum2=Desktop.7z ""..Konum.Filename.."" Bu şekilde değişken vs. kullananları çok gördüm. Bu şekilde yanlış bir kullanımı nereden nasıl öğrendiler bilmiyorum. Bir çok kullanıcıda rastladım buna. Yapmayın arkadaşlar. bunu ben yazmadım, .ini ye birden fazla dosya kaydedemedim, birinden yardım istedim ve oda böyle yap dedi Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted December 13, 2012 Editor Share Posted December 13, 2012 Konum.Filename..Konum.Extension Çünkü burada sadece dosya adı ve uzantıyı yazdırsın dedik. Konum.Drive..Konum.Folder..Konum.Filename..Konum.Extension Biraz help dosyasından String.SplithPath komutunu incele. Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted December 14, 2012 Share Posted December 14, 2012 Tam yolu yazdirmak icin split etmeye gerek yok ki. Döngüdeki value (v) elemani zaten tam yol olarak döner. 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.