version 2004.1
SHOW ON DISK (pathname{; *})
Parameter | Type | Description | |
pathname | String | Pathname of item to show | |
* | If the item is a folder, show its contents |
Description
The SHOW ON DISK command displays the file or folder whose pathname was passed in the pathname parameter in a standard window of the operating system.
In a user interface, this command lets you designate the location of a specific file or folder.
By default, if pathname designates a folder, the command displays the level of the folder itself. If you pass the optional * parameter, the command opens the folder and displays its contents in the window. If pathname designates a file, the * parameter is ignored.
Examples
The following examples illustrate the operation of this command:
SHOW ON DISK("c:\\MyFolder\\MyFile.txt") ` Displays the designated file
SHOW ON DISK("c:\\MyFolder\\Folder2") ` Displays the designated folder
SHOW ON DISK("c:\\MyFolder\\Folder2";*) ` Displays the contents of the designated folder
System Variables and Sets
The system variable OK is set to 1 if the command is executed correctly.