CurrFilePath {*M}

Returns the full path plus filename of the currently-selected file.

Syntax:

CurrFilePath( )

Parameters:

(none)

Returns:

(s) path and filename of currently-selected file.

 

Note: This command is not part of the WIL Interpreter package, but is documented here because it has been implemented in many of the shell or file manager-type applications which use the WIL Interpreter. See FileMenu in the WinBatch Users Guide for details.

Example:
;The CurrFilePath function is designed for menu based
;implementations of WIL, such as FileMenu. It is not
;supported in the WinBatch Product.
;Get the filename before changing directories.
;Edit Current File
myfile=CurrFilepath( )
DirChange("c:\temp")
Run("notepad.exe", myfile)
See Also:

CurrentFile, CurrentPath