SelectFiles

Method of IApplication

Displays Application File Save/Open dialog. SAFEARRAY of BSTR

  • VARIANT_BOOL bOpenDialog = VARIANT_FALSE (optional)
  • BSTR strDefExt = "" (optional)
  • BSTR strFileName = "" (optional)
  • ULONG dwFlags = 0 (optional)
  • BSTR strFilters = "" (optional)
  • BSTR strInitialDir = "" (optional)

Return Value

JavaScript

var ppFiles = Application.SelectFiles(bOpenDialog, strDefExt, strFileName, dwFlags, strFilters, strInitialDir);

Visual Basic Script

ppFiles = Application.SelectFiles bOpenDialog, strDefExt, strFileName, dwFlags, strFilters, strInitialDir

C++

VARIANT pFiles;
HRESULT hr = Application.SelectFiles(bOpenDialog, strDefExt, strFileName, dwFlags, strFilters, strInitialDir, &pFiles);