Yep, that's his code, but you left out a little bit (so you could post I suppose)


<package>
<job id="wmi_01">
<script language="JScript">

try
{
//////////////////////////Main Program
var WshShell = WScript.CreateObject("WScript.Shell");

///////////OS Info
var envSystem = WshShell.Environment("SYSTEM");
var OS = "98";
OS = envSystem("OS");

/////////////Batch File Path
var batchPath = "\\\\godetia\\inventory\\test\\alloy.bat";

////////////////////////StartTimer
jTimer();

function jTimer()
{
WshShell.Popup("Timer Started", 2, "Timer Status"); //for Testing
var i, nowDate, runningHour, runningMinute, timeResult;
i = true;
while (i)
{
nowDate = new Date();
runningSecond = 01;
runningMinute = 01;
runningHour = 12;
timeResult = nowDate.getHours() - runningHour;
// timeResult = nowDate.getMinutes() - runningMinute;
// timeResult = nowDate.getSeconds() - runningSecond;
if (timeResult == 0 && nowDate.getMinutes() == runningMinute )
{
var strThisTime = "Now is " + nowDate.getHours() + ":" + nowDate.getMinutes();
if (OS == "")
{
OS = "Windows 95/98"
WshShell.Popup("OS is : " + OS + "\n" + strThisTime, 2); //for testing
WshShell.Run("cmd /C start " + batchPath, "3", true);
}
else
{
WshShell.Popup("OS is : " + OS + "\n" + strThisTime, 2); //for testing
WshShell.Run("cmd /C start " + batchPath, "3", true);
}
}
///////////running interval
WScript.Sleep(59000);
}
WshShell.Popup("Timer Stop", 2, "Timer Status"); //for Testing
}
}
catch (e)
{
var test = e;
}

</script>
</job>

</package>