Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
AnswerRe: Connecting C# desktop application with web database Pin
Rob Philpott29-May-09 2:59
Rob Philpott29-May-09 2:59 
AnswerRe: Connecting C# desktop application with web database Pin
benjamin yap29-May-09 6:49
benjamin yap29-May-09 6:49 
Questionfind files Pin
michaelgr129-May-09 2:26
michaelgr129-May-09 2:26 
AnswerRe: find files Pin
I Believe In GOD29-May-09 2:28
I Believe In GOD29-May-09 2:28 
GeneralRe: find files Pin
musefan29-May-09 2:33
musefan29-May-09 2:33 
GeneralRe: find files Pin
Rob Philpott29-May-09 3:17
Rob Philpott29-May-09 3:17 
GeneralRe: find files Pin
Baeltazor29-May-09 3:35
Baeltazor29-May-09 3:35 
GeneralRe: find files Pin
Luc Pattyn29-May-09 3:59
sitebuilderLuc Pattyn29-May-09 3:59 
GeneralRe: find files Pin
I Believe In GOD29-May-09 4:48
I Believe In GOD29-May-09 4:48 
GeneralRe: find files Pin
Mike Devenney29-May-09 5:41
Mike Devenney29-May-09 5:41 
AnswerRe: find files Pin
Rajesh R Subramanian29-May-09 2:31
professionalRajesh R Subramanian29-May-09 2:31 
AnswerRe: find files [modified] Pin
musefan29-May-09 2:31
musefan29-May-09 2:31 
GeneralRe: find files Pin
michaelgr129-May-09 3:00
michaelgr129-May-09 3:00 
GeneralRe: find files Pin
musefan29-May-09 3:05
musefan29-May-09 3:05 
GeneralRe: find files Pin
michaelgr129-May-09 3:17
michaelgr129-May-09 3:17 
GeneralRe: find files Pin
musefan29-May-09 3:20
musefan29-May-09 3:20 
GeneralRe: find files Pin
michaelgr129-May-09 3:23
michaelgr129-May-09 3:23 
GeneralRe: find files Pin
michaelgr129-May-09 3:25
michaelgr129-May-09 3:25 
GeneralRe: find files Pin
musefan29-May-09 3:32
musefan29-May-09 3:32 
GeneralRe: find files Pin
michaelgr129-May-09 3:50
michaelgr129-May-09 3:50 
GeneralRe: find files Pin
WinSolution29-May-09 4:31
WinSolution29-May-09 4:31 
GeneralRe: find files Pin
I Believe In GOD29-May-09 4:51
I Believe In GOD29-May-09 4:51 
GeneralRe: find files Pin
michaelgr129-May-09 6:06
michaelgr129-May-09 6:06 
Hello,

I tried many ways to do it (as you wrote and another ways) but in all of them it doesn't always find the file i need.
For example if the starting path is the immediate folder that contains the file it works fine and finds the file, but when the starting patch is a higher (maybe 2-3 folder upper) it doesn't find this file (i write exactly the same name).
It seems it doesn't enough time to the program to collect all the files names inside the folder. I did a little delay but it didn't help.

This is my code:

foreach (string d in Directory.GetDirectories(Start_dir))
{
if (!d.Contains("Shared Documents"))
{
System.Threading.Thread.Sleep(200);
foreach (string f in Directory.GetFiles(d))
{
//MessageBox.Show(f);
if (f.Contains(search))
{
Process.Start(f);
review_file_found = true;
return;
}
}
dirsearch(d, search);
}
}
GeneralRe: find files Pin
michaelgr129-May-09 6:14
michaelgr129-May-09 6:14 
GeneralRe: find files Pin
WinSolution29-May-09 6:41
WinSolution29-May-09 6:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.