Click here to Skip to main content
15,901,368 members
Home / Discussions / C#
   

C#

 
GeneralRe: what is the best algorithm for an information retrieval system? Pin
Colin Angus Mackay20-Jul-08 0:20
Colin Angus Mackay20-Jul-08 0:20 
GeneralRe: what is the best algorithm for an information retrieval system? Pin
Mbah Dhaim20-Jul-08 13:19
Mbah Dhaim20-Jul-08 13:19 
GeneralRe: what is the best algorithm for an information retrieval system? Pin
harcaype20-Jul-08 1:56
harcaype20-Jul-08 1:56 
GeneralRe: what is the best algorithm for an information retrieval system? Pin
Guffa20-Jul-08 2:34
Guffa20-Jul-08 2:34 
QuestionHow to bypass Required FieldValidators using VS2003? Pin
Gaurav Aroraa19-Jul-08 10:30
professionalGaurav Aroraa19-Jul-08 10:30 
AnswerRe: How to bypass Required FieldValidators using VS2003? Pin
ssg3141592619-Jul-08 23:32
ssg3141592619-Jul-08 23:32 
GeneralRe: How to bypass Required FieldValidators using VS2003? Pin
Gaurav Aroraa20-Jul-08 6:27
professionalGaurav Aroraa20-Jul-08 6:27 
QuestionHow to detect when a DataGridViewCell's value has changed Pin
Jordanwb19-Jul-08 10:05
Jordanwb19-Jul-08 10:05 
AnswerRe: How to detect when a DataGridViewCell's value has changed Pin
Paul Conrad19-Jul-08 15:08
professionalPaul Conrad19-Jul-08 15:08 
GeneralRe: How to detect when a DataGridViewCell's value has changed Pin
Jordanwb20-Jul-08 3:24
Jordanwb20-Jul-08 3:24 
AnswerRe: How to detect when a DataGridViewCell's value has changed Pin
Luc Pattyn19-Jul-08 15:17
sitebuilderLuc Pattyn19-Jul-08 15:17 
GeneralRe: How to detect when a DataGridViewCell's value has changed Pin
Jordanwb20-Jul-08 3:23
Jordanwb20-Jul-08 3:23 
QuestionMessageBox.Show("Hello, world."); Pin
njitram19-Jul-08 8:51
njitram19-Jul-08 8:51 
AnswerRe: MessageBox.Show("Hello, world."); Pin
Luc Pattyn19-Jul-08 9:40
sitebuilderLuc Pattyn19-Jul-08 9:40 
AnswerRe: MessageBox.Show("Hello, world."); Pin
Paul Conrad19-Jul-08 11:03
professionalPaul Conrad19-Jul-08 11:03 
QuestionProblem with program that copies files to new folder Pin
jumbojs19-Jul-08 8:38
jumbojs19-Jul-08 8:38 
I am writing a program that takes all the files from one folder, EXCEPT the one created today, and copies them to another folder. Everything works ok except copying only the files that were created prior to today. Instead my program copies all of the files over.


The part that is highlighted is the part I can't get to work. When the console writes out the creation time it is always of the time the files are being created currently and not when they were created orginally

// Check if the target directory exists, if not, create it.   
            if (Directory.Exists(target.FullName) == false)   
            {   
                Directory.CreateDirectory(target.FullName);   
            }   
               
               
            // Copy each file into it's new directory.   
            // Do not copy if it is current file   
            foreach (FileInfo fi in source.GetFiles())   
            {   
               if (fi.CreationTime != DateTime.Today)   
                {   
                    Console.WriteLine("Creation Time: {0}", fi.CreationTime);   
                    Console.WriteLine(@"Copying {0}\{1}", target.FullName, fi.Name);   
                    fi.CopyTo(Path.Combine(target.ToString(), fi.Name), true);   
                }   
                   
            }   
               
            // Delete files from old directory.   
            foreach (FileInfo fi in source.GetFiles())   
            {   
                Console.WriteLine(@"Deleting {0}\{1}", source.FullName, fi.Name);   
                fi.Delete();   
            }   

AnswerRe: Problem with program that copies files to new folder Pin
Luc Pattyn19-Jul-08 8:50
sitebuilderLuc Pattyn19-Jul-08 8:50 
GeneralRe: Problem with program that copies files to new folder Pin
jumbojs19-Jul-08 9:16
jumbojs19-Jul-08 9:16 
GeneralRe: Problem with program that copies files to new folder Pin
Luc Pattyn19-Jul-08 9:38
sitebuilderLuc Pattyn19-Jul-08 9:38 
GeneralRe: Problem with program that copies files to new folder Pin
jumbojs19-Jul-08 10:09
jumbojs19-Jul-08 10:09 
GeneralRe: Problem with program that copies files to new folder Pin
Luc Pattyn19-Jul-08 10:15
sitebuilderLuc Pattyn19-Jul-08 10:15 
GeneralRe: Problem with program that copies files to new folder Pin
jumbojs19-Jul-08 10:18
jumbojs19-Jul-08 10:18 
GeneralRe: Problem with program that copies files to new folder Pin
Luc Pattyn19-Jul-08 10:32
sitebuilderLuc Pattyn19-Jul-08 10:32 
QuestionCrystal Report -- Urgent Help Pin
Ahmed EL Gendy19-Jul-08 8:29
Ahmed EL Gendy19-Jul-08 8:29 
AnswerRe: Crystal Report -- Urgent Help Pin
Paul Conrad19-Jul-08 11:04
professionalPaul Conrad19-Jul-08 11:04 

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.