File.ExtChange
Description
- Change, add, or remove a file extension.
Syntax
- File.ExtChange(fpath, newext)
Parameters
- fpath
- (string) path to the file to change
-
Possible Values
- file character: |
- Used in file selection context menu commands to indicate the selected file.
- For more informaton, see: PPSR > Built-in Functions > by Category > File, Disk > "|"
- path expression
-
- newext
- (string) new extension for fpath
Examples
- File.ExtChange("|", "txt")
- If this command was placed in the special command list Context, it could change the extension of the selected file in an Explorer-type window to ".txt".