Hi,
I'm trying to use the client-side javascript code below in order to get the size of a file on the client machine, but it keeps coming up with
'Automation server can't create object'.
It fails on the 'fso = new ActiveXObject("Scripting.FileSystemObject"
;' line.
<script language="javascript">
function(filespec){
var fso, f, s;
fso = new ActiveXObject("Scripting.FileSystemObject"
;
f = fso.GetFolder(filespec);
s = f.Name + " uses " + f.size + " bytes.";
alert(s);
}
</script>
Any help on this would be much appreciaited.
Marcus
I'm trying to use the client-side javascript code below in order to get the size of a file on the client machine, but it keeps coming up with
'Automation server can't create object'.
It fails on the 'fso = new ActiveXObject("Scripting.FileSystemObject"
<script language="javascript">
function(filespec){
var fso, f, s;
fso = new ActiveXObject("Scripting.FileSystemObject"
f = fso.GetFolder(filespec);
s = f.Name + " uses " + f.size + " bytes.";
alert(s);
}
</script>
Any help on this would be much appreciaited.
Marcus