Re: Scheduled task onlogon monthly?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: mscir (mscir_at_access4less.com.net.org.uk)
Date: 05/27/04


Date: Thu, 27 May 2004 14:29:42 -0700

Crafty Outlaw wrote:

> Scott,
>
> You could do it with a very simple script file. The example below
> will execute "CMD" (DOS Prompt) on day number 1. Just
> change the day of the month and the app to whatever you want.
>
> Copy and paste into Notepad and save as a .vbs file. Then put it
> in the Start Up folder for the applicable user.
>
> Option Explicit
>
> Dim shell
>
> ' This will run the app every month on the 1st
> If day(Date) = 1 Then
> Set shell = CreateObject("WScript.Shell")
> shell.Run("CMD")
> shell.AppActivate "CMD"
> End If
>
> Let me know how it works out for you.
> Dan

Dan, that's a nice trick. Can you tell me how to read up on this? I want
to run 2 different tasks every fifteen minutes, running the 2nd two
minutes after the first. Are there good sites dealing with using .vbs
for scheculed tasks that you might recommend?

Thanks,
Mike



Relevant Pages