Getting property value:
Automation:
String
value = obj.
FileName;
Native (C++):
HRESULT
get_
FileName
(
[out, retval]
BSTR *
val)
;
Parameters
valPointer to a variable that receives a property value.Return Value
Automation:The full file's path name.Native:
S_OK or standard OLE error code.
Examples
Using the FileName property
JavaScriptCopy Code
var fdoc=new ActiveXObject("FileDocument.FileDocument");
fdoc.Open("c:\\temp\\file.bin");
alert("Full file name is " + fdoc.FileName);