Jump to content

File.find Ile Birden Fazla Dosya Uzantısı Arama


turkoglu98
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

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...