Articles → .NET WINDOWS SERVICE → Schedule console application like windows service

Schedule console application like windows service






Create a console application




File.WriteAllText(
                    string.Format(@"c:\temp\Files\{0}.txt", System.Guid.NewGuid()), 
                    string.Format("Files written at {0}", DateTime.Now)
);







Schedule an application











Click to Enlarge




Click to Enlarge




Click to Enlarge




Click to Enlarge






Click to Enlarge




Click to Enlarge




Output



Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, July 13, 2016

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250