If you paste the following into a text file and rename it to xxxx.vbs
The script will simply check for a CACHE.TMP file (amend the folder locations as to your environment), delete the file if available and then run the cms report (again, insert the location of the script file).
-- For all of you 'proper' developers/scripters out there, I don't claim to be any good at development so before any comments are made about how the script could be made better/actually have error handling... I KNOW but it worked for me. However if you want to make it better feel free
on error resume next
Dim bLoop
on error resume next
bLoop = true
'Run CMS Script file
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "c:\centrevu\CVSCRIPT.EXE <enter the full UNC for CMS file>"
'Start of loop...
Do While bLoop
'Set up File system objects to create/copy files.
dim filesys, filehandle
set filesys = CreateObject ("Scripting.FileSystemObject")
'Copy file if needed?? Not needed but in case you want to copy anything!
'
' set filehandle = filesys.CreateTextFile (<DestinationFile>, true)
' set filehandle = filesys.GetFile(<SourceFile>)
' filehandle.Copy(<DestinationFile>)
'
'Check for and Delete CACHE.TMP file - helps with CACHE.TMP issues where the file gets locked!
if filesys.fileexists ("C:\CentreVu\Cache\cache.tmp") then
filesys.deletefile "C:\CentreVu\Cache\cache.tmp"
end if
'Wait for 3000 milliseconds(?) - play with this figure until it runs as frequently as you want.
wscript.sleep(3000)
'End of loop...
Loop
Cheers,
NJ
PS: Please let me know if my advice has been of any use.