Return code: the usual exit
code for FileAcl
Note: You cannot use /SUB
with this interface since the output buffer would not be predictable and we do
not want to allocate 60MB in IIS :)
Usage Sample
:
dim a,commandline,sreturn,ireturn
set a=createobject("fileacl.fileacl")
ireturn=a.Execute("c:\temp",output)
wsh.echo "output for the command"
& output
wsh.echo "return code" ireturn
Return code: the usual exit
code for FileAcl.
To get the output buffer
from FILEACL, use the .Output property
Note: You cannot use /SUB
with this interface since the output buffer would not be predictable and we do
not want to allocate 60MB in IIS :)
Usage Sample
:
dim a,commandline,sreturn,ireturn
set a=createobject("fileacl.fileacl")
ireturn=a.Execute("c:\temp")
wsh.echo "output for the command"
& a.Output
wsh.echo "return code" ireturn
JavaScript:
var a,commandline,sreturn,ireturn;
var a = new ActiveXObject("fileacl.fileacl");
commandline="c:\\temp";
var ireturn=a.Execute2(commandline + " /files /force");
WScript.Echo ("ireturn = " + ireturn);
WScript.Echo ("sreturn " + a.Output);
CommandLine [input parameter] to pass the usual
FILEACL command line to the program
Return code
: the usual exit code for FileAcl
dim a,commandline,sreturn,ireturn
set a=createobject("fileacl.fileacl")
ireturn=a.ExecuteToFile("c:\temp","c:\output.txt")
wsh.echo
"return code" ireturn
Results should be
strictly identical for both the command-line tool and the COM interface, the
same .lib is used in both cases