kaan_karabey Posted December 4, 2014 Share Posted December 4, 2014 (edited) Arkadaşlar Bir Ara Sanki Milano88 veya Başka Biri Şu an Tam Hatırlayamadım Bir Dosya Kopyalama Function u Paylaşmıştı Ama Şu An Bulamıyorum.O Functionla Dosyanın İçindeki Dosyalarda Kopyalanıyordu.Ricam Etsem Elinde Olan Varsa Paylaşabilir mi? Edited December 4, 2014 by kaan_karabey Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted December 4, 2014 Editor Share Posted December 4, 2014 Dosyanın içindeki dosya nasıl birşey tam anlamadım. Klasör içindeki dosyalarımı kast ediyorsun yani alt klasördeki dosyalarıda kopyalatmak. Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted December 4, 2014 Share Posted December 4, 2014 KintaRo bi ara bi fonksiyon paylaşmıştı bununla ilgili, işini görür. http://www.tnctr.com/topic/207911-klasoer-kopyalamak/?p=1241802 Quote Link to comment Share on other sites More sharing options...
kaan_karabey Posted December 5, 2014 Author Share Posted December 5, 2014 Arkadaşlar O Dediklerinizi Yaptım Ama Olmadı Docs Klaösrünün İçindekileri Alt Klasörleriyle Birlikte C:\DuruBilgisayar Klasörüne Aktarmak İstiyorum.Birde Onu Kopyalarken Progress ile Bağlamak İstiyorum.Nasıl Yapabilirim??? Quote Link to comment Share on other sites More sharing options...
milano88 Posted December 6, 2014 Share Posted December 6, 2014 function CopyFolder(sFolder, sDestination, Callback) if(String.ReverseFind(sFolder, "\\", false)==String.Length(sFolder))then sFolder = String.Mid(sFolder, 1, String.Length(sFolder)-1);end if(String.ReverseFind(sDestination, "\\", false)~=String.Length(sDestination))then sDestination = sDestination.."\\";end local foldername = String.SplitPath(sFolder).Filename if(Folder.DoesExist(sFolder))and(Folder.DoesExist( sDestination))then Folder.Create(sDestination.."\\"..foldername); if(type(Callback)~="function")then Callback = nil;end File.Copy(sFolder.."\\*.*", sDestination.."\\"..foldername, true, true, false, true, Callback); end end Kullanım : local sFold = Dialog.FolderBrowse("Select a folder to copy", ""); if(sFold~="CANCEL")then local sDest = Dialog.FolderBrowse("Select a destination", ""); if(sDest~="CANCEL")then CopyFolder(sFold, sDest, function(Source,Destination,Copied,Total,FileCopied,FileTotal) local percent = string.format("%2d", 100*(Copied/Total)); Progress.SetRange("Progress1", 0, 100); Progress.SetCurrentPos("Progress1", percent); Progress.SetText("Progress1", "% " .. percent); return true; end) end end 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.