Click or drag to resize

FPathName Function

X#
Return the name and path of the file that was used by File().

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax
 FUNCTION FPathName() AS STRING
Request Example View Source

Return Value

Type: String
The complete name, including path, of the file that was last used by File(). Note that the system might also use File() internally.
Remarks
Examples
This example uses FPathName() after calling File:
X#
1SetDefault("\vo")
2? File("*.exe")
3? FPathName()                // C:\VO\EXISTS.EXE
4? File("d:\backup\notexist.txt")
5? FPathName()                // D:\BACKUP\NOTEXIST.TXT
6SetDefault("c:\backup")
7File("exists.txt")            // c:\backup\exists.txt
8? FPathName()
9SetDefault("c:\vo\data")
See Also