Automatic executionhttp://forums.asp.net/t/1788713.aspx/1?Automatic+executionSun, 08 Apr 2012 14:43:29 -040017887134914298http://forums.asp.net/p/1788713/4914298.aspx/1?Automatic+executionAutomatic execution <p>Hi,</p> <p>&nbsp;</p> <p>How can I execute a code in background at a specific times (For example, every 12 hours)?</p> <p>&nbsp;</p> <p>Regards,</p> <p>Bader</p> 2012-04-03T15:03:39-04:004914307http://forums.asp.net/p/1788713/4914307.aspx/1?Re+Automatic+executionRe: Automatic execution <p>We need to create an batch file exe that can be set in windows services to run for every 12 hours</p> <h1 id="ctl00_TitleArea_ArticleTitle" class="fn">Creating a Basic Windows Service in C#</h1> <p><a href="http://www.codeproject.com/Articles/14353/Creating-a-Basic-Windows-Service-in-C">http://www.codeproject.com/Articles/14353/Creating-a-Basic-Windows-Service-in-C</a></p> 2012-04-03T15:09:20-04:004914349http://forums.asp.net/p/1788713/4914349.aspx/1?Re+Automatic+executionRe: Automatic execution <p>Hi,</p> <p>for executing a code in background at a specific time you have to write windows service.</p> 2012-04-03T15:35:06-04:004914478http://forums.asp.net/p/1788713/4914478.aspx/1?Re+Automatic+executionRe: Automatic execution <p>1. Window service is the only option left here</p> <p>but if you want to use some simple service , you can use windows in built scheduling component.</p> 2012-04-03T16:49:00-04:004914496http://forums.asp.net/p/1788713/4914496.aspx/1?Re+Automatic+executionRe: Automatic execution <p>I did something a little different for one of my applications.<br> I wrote an .exe file in C# using Visual Studio 2010, and then configured Windows Tasks to run it whenever I like. :)&nbsp;</p> 2012-04-03T16:59:11-04:004916139http://forums.asp.net/p/1788713/4916139.aspx/1?Re+Automatic+executionRe: Automatic execution <p>Hi,</p> <p>&nbsp;</p> <p>The above solution doesn't help me,</p> <p>I'm womder if I can do in IIS a scheduled tasks (Like: <a href="http://blog.arvixe.com/how-to-use-schedule-task-to-execute-a-url-like-www-example-comabc-html/"> http://blog.arvixe.com/how-to-use-schedule-task-to-execute-a-url-like-www-example-comabc-html/</a>).</p> <p>&nbsp;</p> <p>Please, I need your help.</p> <p>Regards,</p> <p>Bader</p> 2012-04-04T14:40:08-04:004916287http://forums.asp.net/p/1788713/4916287.aspx/1?Re+Automatic+executionRe: Automatic execution <p>To my knowledge you dont have scheduled tasks in IIS...write a powershell script which can run periodically and can communicate wit IIS...</p> <p>Thanks,</p> 2012-04-04T15:48:25-04:004916437http://forums.asp.net/p/1788713/4916437.aspx/1?Re+Automatic+executionRe: Automatic execution <p>Thanks all</p> 2012-04-04T17:32:50-04:004921672http://forums.asp.net/p/1788713/4921672.aspx/1?Re+Automatic+executionRe: Automatic execution <p>Hi,</p> <p>I created my windows service using Visual Studio 2010, generated the exe file, and tried to add it to the services list (services.msc), but the service was not added:</p> <p><strong>C:\Windows\Microsoft.NET\Framework\v4.0.30319&gt;InstallUtil.exe C:\Users\Raya\Desktop\Task_05042012\HelpFiles\WindowsServices\TaskWS\TaskWS\bin\Debug\TaskWS.exe</strong></p> <p>I opened <strong>services.msc</strong> , refreshed the list, but the service was not there.</p> <p>Can you please explain to me how can I solve this issue?</p> <p></p> <p>Regards,</p> <p>Bader</p> 2012-04-08T13:17:18-04:004921675http://forums.asp.net/p/1788713/4921675.aspx/1?Re+Automatic+executionRe: Automatic execution <p>restart the system , and make sure it is visible to every user.</p> 2012-04-08T13:19:24-04:004921692http://forums.asp.net/p/1788713/4921692.aspx/1?Re+Automatic+executionRe: Automatic execution <p>Hi,</p> <p>&nbsp;</p> <p>Thanks for the reply, but restarting the system doesn't solve the problem</p> <p>&nbsp;</p> <p>Regards,</p> <p>Bader</p> 2012-04-08T13:36:31-04:004921743http://forums.asp.net/p/1788713/4921743.aspx/1?Re+Automatic+executionRe: Automatic execution <p>Hi,</p> <p>&nbsp;</p> <p>I want to indicate that I created the windows service based on the following URL:</p> <p><a href="http://www.aspfree.com/c/a/C-Sharp/Timer-Objects-in-Windows-Services-with-C-sharp-dot-NET/">http://www.aspfree.com/c/a/C-Sharp/Timer-Objects-in-Windows-Services-with-C-sharp-dot-NET/</a></p> <p>&nbsp;</p> <p>Regards,</p> <p>Bader</p> 2012-04-08T14:43:29-04:00