Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Windows does not have cron, but it does have an equivalent task scheduler.</p> <p>See <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/bb736357%28v=vs.85%29.aspx" rel="nofollow">this overview</a> of the scheduler and <a href="http://technet.microsoft.com/en-us/library/cc725744.aspx#BKMK_spec_day" rel="nofollow">this specific example</a> for configuring a "Wednesday-only" task.</p> <p>A counter like you are describing does seem like the kind of value that you would normally store in a database, e.g. <a href="http://www.sqlite.org/" rel="nofollow">SQLite</a> is lightweight/convenient. You could take a look at <a href="http://www.skorks.com/2009/08/installing-and-using-sqlite-with-ruby-on-windows/" rel="nofollow">this nice intro on SQLite in Windows</a>.</p> <p><strong>Update</strong></p> <p>In answer to your question in the comments...</p> <blockquote> <p>so I can run .rb file or ruby task with this ?</p> </blockquote> <p>Yes, you can. Here is a small recipe:</p> <p>1) Install Ruby with this installer: <a href="http://rubyinstaller.org/" rel="nofollow">http://rubyinstaller.org/</a> Note: Make sure to check the checkboxes that set it up to be able to run standalone Ruby scripts as-is.</p> <p>2) Write a sample ruby script to periodically run. E.g., here's one that will throw a Windows dialog:</p> <pre><code>require 'Win32API' title = "Test" text = "Testing..." dialog = Win32API.new('user32', 'MessageBox', 'LPPL', 'I') result = dialog.call(0, text, title, 1) </code></pre> <p>3) And here's an example of "cron" setup from cmd.exe: schtasks /create /sc minute /mo 1 /tn "Test Script" /tr c:\Users\manzoid\dev\test.rb</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload