MehmetErdo287du Posted November 29, 2014 Share Posted November 29, 2014 (edited) listboxa yereldiskteki klasörleri listeletiyorum buradaki bir klasörün içindeki ve alt klasörlerinde bir dosya aramak istiyorum yardımcı olur musunuz using system.io try { string[] ara = Directory.GetFiles("konum", "***aranacak veri***"); listBox2.Items.Clear(); foreach (String item in ara) { listBox2.Items.Add(item); toolStripStatusLabel1.Text = item; } } catch (Exception ex) { MessageBox.Show(" Hata! \n" + ex.Message); } ? Edited November 29, 2014 by MehmetErdo287du Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted November 29, 2014 Editor Share Posted November 29, 2014 Directory.GetFiles(root,"*",SearchOption.AllDirectiories); Quote Link to comment Share on other sites More sharing options...
lamont Posted December 2, 2014 Share Posted December 2, 2014 Pairs cevabı vermiş bu şekilde root ile ana dizinde arama yapabilirsniz Quote Link to comment Share on other sites More sharing options...
MehmetErdo287du Posted December 2, 2014 Author Share Posted December 2, 2014 teşekkürler oldu 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.