Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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
Posted

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 file

10: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,W

Su = Sunday

M = Monday

T = Tuesday

W = Wednesday

Th = Thursday

F = Friday

S = 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"

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...