Since today the following script stopped working:
Code: Select all
Set objFS = CreateObject("Scripting.FileSystemObject")
Set objFile = objFS.GetFile(WScript.Arguments(0))
WScript.StdOut.Write "ScriptRes:Ok:" & DateDiff("d",objFile.DateLastModified,Now())
It takes a filename with full unc path as parameter.
The specific file is accessible from the computer running HM.
Until today it ran fine. Now it only says:
Error: Script returns no results
However, when I run it from the script editor, it tests just fine.
Also, when I run it from a prompt or any VB editor, it runs fine.
And with a local file, it runs fine too.
It just won't run as a test in HM with a UNC formatted path\file.
Weird eh? Any ideas would be greatly appreciated!
HM 12.50 running on W10Pro/2004