MacBain00 Posted May 2, 2007 Posted May 2, 2007 I tried to do a quick search but came up with nothing. I have to create a script which runs daily at the same time. Is there any way I could keep track of this. I was thinking writing the date to a file and then checking the date. Also I need the process to run in the background all the time without any impact on computer perforance. Thanks for any help. -Work Smarter, Not Harder, Use More AutoIT
Shevilie Posted May 2, 2007 Posted May 2, 2007 Well you could use windows schedule, which is build in windows The the scipt itself could write to a log if it was run succesfully Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
Zedna Posted May 2, 2007 Posted May 2, 2007 (edited) Here is the base: While 1 If @HOUR & @MIN = '1430' Then Action() Sleep(100) WEnd Func Action() Run('calc.exe') EndFunc - Make EXE from this script and copy it to "After Run" Windows folder - You must also solve problem to not start your program more than once ... Edited May 2, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
PsaltyDS Posted May 2, 2007 Posted May 2, 2007 Set up a scheduled task with SCHTASKS.exe (MS download, included in some later versions of Windows). The scheduled task runs your script, and your script writes to a log file. BADABOOM, BADABING! Your in business! Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
LiquidPerceptions Posted May 2, 2007 Posted May 2, 2007 Set up a scheduled task with SCHTASKS.exe (MS download, included in some later versions of Windows). The scheduled task runs your script, and your script writes to a log file.BADABOOM, BADABING! Your in business! You can also create a command prompt file to add the job. Below is the code to do it.at 10:00PM /INTERACTIVE /EVERY:Su "C:\WINDOWS\System32\Update P21.exe"at = creates the job file10:00PM = the time you want it to run, if you wanted a differnt time, just type it in followed by AM/PM/INTERACTIVE = the user can interact, in your case, you don't want it to, so leave this option out/EVERY:Su = This run every Sunday. The day codes are as followed. Seperate multiple dates with a comma (ie /EVERY:Su,M,WSu = SundayM = MondayT = TuesdayW = WednesdayTh = ThursdayF = FridayS = Saturday"C:\..." = What do you want to run. This must be an entire path!!!Microsoft Documentation:http://www.microsoft.com/resources/documen...t.mspx?mfr=true "I'm not here to make decisions, I'm here to make a difference"
PsaltyDS Posted May 3, 2007 Posted May 3, 2007 The old scheduler from Windows95/NT is AT.EXE. The replacement since Windows XP is SCHTASKS.EXE, which ships with XP/2003 Server, but I have also tested on Windows 2000 Advanced Server.SCHTASKS is much more useful and should be preferred. For example: alternate credentials can be applied, jobs can have descriptive names instead of numbers, current job names and properties can be accessed easily, many more scheduling options are available (including keywords like "onstart" and "onlogon"). Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now