Returns the full directory path (without the filename) of the current WinBatch program.
DirScript()
None
(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.
wbtdir = DirScript() ;or ;exedir = DirScript() Message("Script Directory",wbtdir) Exit