Click here to Skip to main content
15,909,503 members
Home / Discussions / C#
   

C#

 
GeneralRe: open aspx page Pin
michaelgr125-May-09 1:32
michaelgr125-May-09 1:32 
AnswerRe: open aspx page Pin
Ramesh Swaminathan25-May-09 3:22
Ramesh Swaminathan25-May-09 3:22 
AnswerRe: open aspx page Pin
Vasudevan Deepak Kumar25-May-09 3:51
Vasudevan Deepak Kumar25-May-09 3:51 
QuestionWrong COM Port Number Pin
stancrm25-May-09 0:04
stancrm25-May-09 0:04 
AnswerRe: Wrong COM Port Number Pin
Moreno Airoldi25-May-09 3:56
Moreno Airoldi25-May-09 3:56 
GeneralRe: Wrong COM Port Number Pin
Rajesh Anuhya25-May-09 3:58
professionalRajesh Anuhya25-May-09 3:58 
GeneralRe: Wrong COM Port Number Pin
Dave Kreskowiak25-May-09 6:59
mveDave Kreskowiak25-May-09 6:59 
AnswerRe: Wrong COM Port Number Pin
Rajesh Anuhya25-May-09 3:56
professionalRajesh Anuhya25-May-09 3:56 
QuestionHow will I pass argument to Process Pin
Naveed72724-May-09 22:07
Naveed72724-May-09 22:07 
AnswerRe: How will I pass argument to Process Pin
S. Senthil Kumar24-May-09 22:38
S. Senthil Kumar24-May-09 22:38 
AnswerRe: How will I pass argument to Process Pin
Luc Pattyn24-May-09 23:56
sitebuilderLuc Pattyn24-May-09 23:56 
QuestionHow can I know the Internet Explorer Information using c#? Pin
svt gdwl24-May-09 21:23
svt gdwl24-May-09 21:23 
AnswerRe: How can I know the Internet Explorer Information using c#? Pin
Manas Bhardwaj24-May-09 23:17
professionalManas Bhardwaj24-May-09 23:17 
QuestionHow can I catch the keyboard events on browser (IE) using c#? Pin
svt gdwl24-May-09 20:58
svt gdwl24-May-09 20:58 
AnswerRe: How can I catch the keyboard events on browser (IE) using c#? Pin
stancrm24-May-09 21:18
stancrm24-May-09 21:18 
QuestionSearching drives and directories Pin
Rajdeep.NET is BACK24-May-09 20:10
Rajdeep.NET is BACK24-May-09 20:10 
Hi guys,

I am working on a Console application which I used to detect certain files in specific locations. The code I used is like this:

if (File.Exists(@"C:\\myfolder\\directory1\\file.txt"))
{
// Statements executed
}
else
{
Console.WriteLine("File not found");
}


But now, I am thinking of something different. What if the file is in such a location/path that is not known to me?! Suppose, I want to search for a file in the system and do not know its exact location except the file name, then what would I do? How would I implement a thorough search all over the C:\\ drive (including all its direcotries without mentioning their name) to find a specific file and then delete it with System.IO.File.Delete method?

Please find me a way,
Cheers,
Rajdeep.NET Big Grin | :-D
AnswerRe: Searching drives and directories Pin
fly90424-May-09 20:23
fly90424-May-09 20:23 
GeneralRe: Searching drives and directories Pin
Rajdeep.NET is BACK24-May-09 20:35
Rajdeep.NET is BACK24-May-09 20:35 
GeneralRe: Searching drives and directories Pin
fly90425-May-09 1:34
fly90425-May-09 1:34 
AnswerRe: Searching drives and directories Pin
stancrm24-May-09 20:53
stancrm24-May-09 20:53 
GeneralRe: Searching drives and directories Pin
fly90425-May-09 1:54
fly90425-May-09 1:54 
GeneralRe: Searching drives and directories Pin
Rajdeep.NET is BACK25-May-09 2:09
Rajdeep.NET is BACK25-May-09 2:09 
AnswerRe: Searching drives and directories Pin
MumbleB24-May-09 22:47
MumbleB24-May-09 22:47 
GeneralRe: Searching drives and directories Pin
Rajdeep.NET is BACK25-May-09 6:59
Rajdeep.NET is BACK25-May-09 6:59 
QuestionHttpWebRequest question Pin
Ehsan Baghaki24-May-09 19:57
Ehsan Baghaki24-May-09 19:57 

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.