This method returns a complete path from the provided pathName. As it echoes back the provided path, the need for this method is not clear.

GetBaseName(pathName)

Boolean

This method returns a string containing the base name of pathName, without any extension or path. The use of this method is in applications that need to assemble file names on the basis of another file. For example, an application can name its output file using the base name of the executable (myapp.exe) and a different extenstion (myapp.out). The following script should pop up an alert box with the string myapp: