943,152 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 408
  • C# RSS
Mar 11th, 2010
0

Run a file at that date.

Expand Post »
hello i woud like to have an C# code witch will run a file at monday, one at tuesday, one at wedensday, one at thursday, one at friday, one at saturday and one at sunday, can somone provide me this please ?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tom23 is offline Offline
7 posts
since Mar 2010
Mar 11th, 2010
0
Re: Run a file at that date.
What have you tried for yourself already, or are you completely lost about this?
Reputation Points: 2023
Solved Threads: 643
Senior Poster
ddanbe is offline Offline
3,733 posts
since Oct 2008
Mar 11th, 2010
1
Re: Run a file at that date.
1. Create seven files - Mon, Tue, and so on.
2. Use File.Open(DateTime.Now.ToString("ddd")) to open a file.
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,525 posts
since Oct 2008
Mar 11th, 2010
1
Re: Run a file at that date.
@adatapost: Amazing code! As Einstein once said: " Keep it simple, but not simpler."
I was more thinking about a Timer and so, but your code should do the job.
Reputation Points: 2023
Solved Threads: 643
Senior Poster
ddanbe is offline Offline
3,733 posts
since Oct 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Problem with DataGridView quick filter
Next Thread in C# Forum Timeline: C# Program using WMI Query - Can't get WHERE to work





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC