Quantcast

Maximum PC

It is currently Fri Dec 26, 2014 5:21 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: help with c#
PostPosted: Wed Sep 30, 2009 3:53 pm 
Little Foot
Little Foot

Joined: Tue Apr 22, 2008 9:24 am
Posts: 126
ok, so I have a console application, and I need this application to be able to search for a file , and the date it last modified, and if it was not modified before before the specified, I need it to send out an email to a specified address with an alert. also i want to make a logfile for everytime this program is used.


i'll be using string 1 file name *.* since the application will be looking for a filename that is supplied correct? I looked at file recursion, but i'm not going to be looking in any specific directory, i don't know how to get it to search the whole local drive.

string two would be the date, how do i get my program to check a date of modification?

the emailing part and log file i can handle. I just don't know how to do the first two, and get them to work together.

any help is much appreciated.


Top
  Profile  
 
 Post subject:
PostPosted: Thu Oct 01, 2009 4:45 am 
SON OF A GUN
SON OF A GUN
User avatar

Joined: Mon Nov 01, 2004 5:41 am
Posts: 11605
Okay... for now, until you have some more specific problems I am going to point you at some MSDN docs that should help you out.

Google is also your friend.

The bottom line is you have to tell the application to start looking some where. Be it manually or you go and get a list of all the drives on the system.

http://msdn.microsoft.com/en-us/library/system.io.aspx
http://msdn.microsoft.com/en-us/library ... yinfo.aspx
http://msdn.microsoft.com/en-us/library ... einfo.aspx

http://msdn.microsoft.com/en-us/library ... etime.aspx
http://www.google.com/search?q=c%23+che ... ified+date

You are going to need to try a little bit before I help more. I need to see some code of your own and specific questions about the code. I can't do your homework for you.


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

© 2014 Future US, Inc. All rights reserved.