M626
Programmer
- Mar 13, 2002
- 299
Is there a ways to schedule a Task Using the Windows Scheduled Task to run every 30 seconds?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
@echo off
sleep 30
start batchfilename
CommandToExecute
Option Explicit
Dim ctr, intReturn, objShell, strCommand
Set objShell = CreateObject("WScript.Shell")
ctr = 0
strCommand = "copy c:\*.txt \\server\share\copyfolder"
Do
ctr = ctr + 1
intReturn = objShell.Run(strCommand, , True)
WScript.Sleep 30000
Loop Until ctr = 2880