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 ?

Recommended Answers

All 3 Replies

What have you tried for yourself already, or are you completely lost about this?

1. Create seven files - Mon, Tue, and so on.
2. Use File.Open(DateTime.Now.ToString("ddd")) to open a file.

commented: Amazing. +6

@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.

commented: Thanks danny. +8
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.