Hey all, I have a script checking folder size before backup. It works on all but one machine. It's WIN98se and we have several others that run the same just fine.
The code is right of the UDFs and stops with the error below.
Unknown command
$fold = $fso.getfolder($path)
Here's the section of the script:
:GDAY
function GetFolderSize($path)
DIM $fso, $fold
$GetFolderSize = -3
if exist($path) = 1
$FSO = createobject("scripting.filesystemobject")
$fold = $fso.getfolder($path)
$GetFolderSize = $fold.size
exit(0)
else
exit(3)
endif
endfunction
$result = GetFolderSize("c:\mydocu~1")
If $result > "200000000"
$Selection = Messagebox(" Your 'My Documents' folder is too large for backup. Please see the network administrator.", "Notice", 0)
Exit
Endif
Parden the pasting but the code should be errelevant as it works on so many other pcs.
Thanks