var fso = new ActiveXObject("Scripting.FileSystemObject");
var filePath = "C:\\test\\123.ogg";
function doSomething() {
WScript.Echo("Файл " + filePath + " существует.");
// Your code here
}
while(true) {
if (fso.FileExists(filePath)) doSomething();
WScript.Sleep(3000); // 3 sec
}