turkoglu98 Posted July 21, 2013 Share Posted July 21, 2013 arkadaşlar file find ile birden fazla dosya uzantısını nasıl aratabilirim yani exeara = File.Find(path, "*.exe", false, false, nil, nil); -- bu sadece exe dosyalarını aratıyor benim istediğim tek kodda hem exe hemde msi dosyalarını aratması bunu nasıl yapabilirim Quote Link to comment Share on other sites More sharing options...
WolfmanTR_ Posted July 21, 2013 Share Posted July 21, 2013 File.Find(path, "*.*", false, false, nil, nil); tüm dosyaları arar. Quote Link to comment Share on other sites More sharing options...
turkoglu98 Posted July 21, 2013 Author Share Posted July 21, 2013 bu olabilir belki teşekkürler Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted July 21, 2013 Share Posted July 21, 2013 Tüm dosyaları arayıp, bulunan dosyalardan sadece istediğiniz uzantıda olanları ayrıştırabilirsiniz. Quote Link to comment Share on other sites More sharing options...
turkoglu98 Posted July 21, 2013 Author Share Posted July 21, 2013 peki bu nasıl olucak hocam (bu arada *.* ile aratmak işe yaramadı) Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted July 21, 2013 Share Posted July 21, 2013 tFiles = File.Find(path, "*", false, false, nil, nil); for index,file in pairs (tFiles) do split = String.SplitPath(file); if split.Extension == ".exe" or split.Extension == ".msi" then Dialog.Message("Dosya", file, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); end end Bu şekilde yapacaksın. Quote Link to comment Share on other sites More sharing options...
turkoglu98 Posted July 21, 2013 Author Share Posted July 21, 2013 teşekkür ederim bu işime yaradı 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.