EditFile Method
- Last UpdatedNov 06, 2025
- 1 minute read
The EditFile() method opens the specified file in the appropriate editor application using the Windows Edit verb.
Parameters
- path
- Required. Holds the path and file name of the file, including the file extension.
- docType
Required. Holds the file extension of the file, including the leading period (.) of the extension. This parameter is used to look up the edit arguments in the File_Type table to pass to Windows with the Edit verb.
When the method is called, it looks up the file extension supplied by the docType parameter in the File_Type table to get the edit arguments in the edit_args column. If the edit arguments contain a %FA parameter, it is removed from the arguments. The file name and edit arguments are then passed to Windows using the Edit verb to open the file in the appropriate application.