FILAECL COM Interfaces

Com interface description:

"Execute" method parameters:

Warning: the Execute method can only be used with VBScript, other scripting languages do not support [OUT] parameters for Jscript or other scripting language,
please use theExecute2 method.

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

 

"Execute2" method parameters:

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);

 

 

"ExecuteToFile" method parameters:

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