The FileSaveAs command indicates the options chosen in the native “file save as” dialog box when a file is saved. The options indicate the location, name and type of the file to be saved.
FileSaveAs file relative_path type type
• relative_path - The path, in generic format, indicating the name and location of the file being saved. The path can be an absolute or relative path.
Relative paths allow indication of the current directory, subdirectories or parent directories. In generic format, ./ indicates the current directory while ../indicates one directory level up. The following table contains some examples of relative paths.
Relative path |
Description |
---|---|
./TEST.TXT |
The file TEST.TXT in the current directory. |
DATA/TEST.TXT |
The file TEST.TXT in the subdirectory DATA. |
../TEST.TXT |
The file TEST.TXT, up one level in the directory structure. |
../ ../TEST.TXT |
The file TEST.TXT, up two levels in the directory structure. |
• type - An integer that indicates the type of file to be saved.