DirScript

Returns the full directory path (without the filename) of the current WinBatch program.

Syntax:

DirScript()

Parameters:

None

Returns:

(s) full path of the current WinBatch program.

 

If the current WinBatch script is a child program that was called with the Call() function, this function will return the full directory path (without the filename) of the main (calling) program.

Example:


wbtdir = DirScript()
;or
;exedir = DirScript()
Message("Script Directory",wbtdir)
Exit
See Also:

DirHome, DirGet, IntControl 1004