Help for OpenFileBox class ─────────────────────────── Present an Open File dialog, and return the selected file path COM ProgID: RobvanderWoude.OpenFileBox ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ │ │ Properties (Note that all properties are string or integer, no booleans, objects or arrays) │ │ │ ╞══════════════════╤════════════════════════════════════════════════════╤═══════════╤═══════════╤══════════════════════════════════════════════╡ │ Property Name │ Description │ Mandatory │ Read-Only │ Default (Allowed) Values │ ╞══════════════════╪════════════════════════════════════════════════════╪═══════════╪═══════════╪══════════════════════════════════════════════╡ │ addallfiles │ Add "All files (*.*)" to filter (0=false; 1=true) │ no │ no │ 1 │ ├──────────────────┼────────────────────────────────────────────────────┼───────────┼───────────┼──────────────────────────────────────────────┤ │ addextension │ Add extension if user forgot it (0=false; 1=true) │ no │ no │ 1 │ ├──────────────────┼────────────────────────────────────────────────────┼───────────┼───────────┼──────────────────────────────────────────────┤ │ debuginfo │ A log of actions for debugging │ N/A │ YES │ │ ├──────────────────┼────────────────────────────────────────────────────┼───────────┼───────────┼──────────────────────────────────────────────┤ │ defaultextension │ Default extension to be added │ no │ no │ │ ├──────────────────┼────────────────────────────────────────────────────┼───────────┼───────────┼──────────────────────────────────────────────┤ │ description │ Text above directory tree │ no │ no │ │ ├──────────────────┼────────────────────────────────────────────────────┼───────────┼───────────┼──────────────────────────────────────────────┤ │ errors │ List of errors with current settings │ N/A │ YES │ │ ├──────────────────┼────────────────────────────────────────────────────┼───────────┼───────────┼──────────────────────────────────────────────┤ │ filter │ File filter │ no │ no │ "All files (*.*)|*.*" │ ├──────────────────┼────────────────────────────────────────────────────┼───────────┼───────────┼──────────────────────────────────────────────┤ │ forceext │ Append default extension if missing │ │ │ │ ├──────────────────┼────────────────────────────────────────────────────┼───────────┼───────────┼──────────────────────────────────────────────┤ │ multidotted │ Allow multiple extensions (0=false; 1=true) │ no │ no │ 1 │ ├──────────────────┼────────────────────────────────────────────────────┼───────────┼───────────┼──────────────────────────────────────────────┤ │ overwrite │ Overwrite file if it exists (0=false; 1=true) │ no │ no │ 0 │ ├──────────────────┼────────────────────────────────────────────────────┼───────────┼───────────┼──────────────────────────────────────────────┤ │ selectedfile │ The path of the selected file(s) │ N/A │ YES │ │ ├──────────────────┼────────────────────────────────────────────────────┼───────────┼───────────┼──────────────────────────────────────────────┤ │ startfolder │ The initial folder for the dialog │ no │ no │ │ ├──────────────────┼────────────────────────────────────────────────────┼───────────┼───────────┼──────────────────────────────────────────────┤ │ title │ Dialog window title │ no │ no │ DialogBoxes.dll, Version 0.18.1.0 │ ├──────────────────┼────────────────────────────────────────────────────┼───────────┼───────────┼──────────────────────────────────────────────┤ │ verbose │ Prompt if file does not exist (0=false; 1=true) │ no │ no │ 0 │ ├──────────────────┼────────────────────────────────────────────────────┼───────────┼───────────┼──────────────────────────────────────────────┤ │ Version │ Show this DLL's version │ N/A │ YES │ │ └──────────────────┴────────────────────────────────────────────────────┴───────────┴───────────┴──────────────────────────────────────────────┘ ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ │ │ Methods │ │ │ ╞════════════════════╤════════════════════════════════════════════════════════════════════════════╤════════════════════════════════════════════╡ │ Method Name │ Description │ Requirements │ ╞════════════════════╪════════════════════════════════════════════════════════════════════════════╪════════════════════════════════════════════╡ │ CheckUpdate │ Check the developer's website for updates │ │ ├────────────────────┼────────────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────┤ │ Credits │ Shows credits │ │ ├────────────────────┼────────────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────┤ │ Help │ Returns this help text as plain text, or if optional parameter equals 1, │ │ │ │ as html │ │ ├────────────────────┼────────────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────┤ │ ListProperties │ Returns a list of this class' properties as key=value pairs (1 per line) │ │ ├────────────────────┼────────────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────┤ │ SampleCode │ Returns VBScript sample code for this dialog │ │ ├────────────────────┼────────────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────┤ │ Show │ Presents an Open File dialog based on the current property values, and if │ │ │ │ "OK"is clicked, saves the selected file path in the "selectedfile" │ │ │ │ property (if "Cancel" is clicked, "selectedfile" will be empty) │ │ └────────────────────┴────────────────────────────────────────────────────────────────────────────┴────────────────────────────────────────────┘ VBScript usage example: ─────────────────────── Set objSaveFileBox = CreateObject( "RobvanderWoude.SaveFileBox" ) With objSaveFileBox .startfolder = "D:\" .Show WScript.Echo "Selected target file: " & .selectedfile WScript.Echo WScript.Echo .ListProperties( ) End With Set objSaveFileBox = Nothing