How to? Get name of current LIBRARY function?

_BATCHNAME returns the full path and file name of the current batch file. It is an empty string if no batch file is active.

When executing a library function, how can I get the name of the currently executing library function? (Not the name of the LIBRARY in which it is contained.)

For example, if I have a library function SETU, how do I get that name, while the library function is executing?

     _x64: 1
   _admin: 1
_elevated: 1

TCC  27.00.18 x64   Windows 10 [Version 10.0.19042.746]
I have a template that I use in my .btm files, that includes (example);
ECHO  Usage:  %_batchname MainFile  ExtraFile1 ExtraFile2 ExtraFile3 that I don't have to hard-code the name of the .BTM

I would like to be able to do the same with LIBRARY functions.

May 20, 2008
Syracuse, NY, USA
how can I get the name of the currently executing library function?
If the library function is currently executing, who's going to be doing the getting of its name ... the library function itself?

A library function can refer to %0, which seems to be its own name.
Similar threads
Thread starter Title Forum Replies Date
vefatica Command name mix-up Support 3
Jay Sage Command Will Not Run Using Short Name of Path Support 5
Chen Touboul When i try to delete an empty folder i got "the dirctoy name is invalid" Support 3
vefatica LIBRARY and file name completion? Support 4
vefatica PLAYSOUND requires 8-dot-3 name? Support 8
R Tree on FAT32 does not sort by name by default. Support 6
vefatica START /PGM "name with spaces.URL" fails Support 2
vefatica Can TCC complete this file name? Support 5
thorntonpg option /u not working The directory name is invalid Support 5
Dmitry L. Kobyakov WAD Start /pgm "name.htm" works improperly Support 4
vefatica Array name in a variable? Support 3
E My echo full file name to the clipboard fails now. Support 2
Joe Caverly @NAME supports library functions Support 2
H file name completion on tcc21.01.61 Support 4
C See if a file name matches extended range. Support 15
vefatica Two @FUNCTIONs/aliases with the same name Support 4
x13 Function to get interface user-defined name? Support 10
nickles Command name parsing of GNU compilers Support 13
M Registered to machine-name? Support 7
P Rename files with ampersand in the name Support 1
mdwyer TCC 13 COPY: specified network name is no longer available. Support 5
R How to? Name completion only of directories? Support 3
I "IF" command in a variable does not expand redirection variable name Support 0
nickles Fixed Executing long command lines in a batch generates file name errors Support 16
Jay Sage Short File Name Won't Execute Support 4
rps Fixed V17 @name adding quote (") to result Support 5
vefatica FFIND /S, find directory with specified name? Support 7
jbanaszczyk Alias with space in the name Support 3
tmaynard Invalid item name "Lua" Support 6
MickeyF how to work with env var with special characters in the name Support 5
nickles WAD Variable name gets changed within FOR loop Support 2
B Why Does @GETDIR Repeat Selected Directory Name In Returned Value Support 7
noahcoad Fixed Can't @iniread a section w quotes in the name Support 6
M A UNC name failure... Support 28
M Why is an obviously invalid file name allowed? Support 2
T TCC reading TCMD.INI causing "Invalid item name" warnings and pauses Support 2
C start /wait /pgm "program name" ^ ketstack n/w Support 3
J Tab-Complete annoyance when directory name and file basename match and tab on '.' Support 1
vefatica START /DESKTOP="name with space" ... Support 4
S WAD PDIR: files with percent sign % in name cause not listing other files in directory Support 9
C sendmail TO name? Support 9
cgunhouse ProcessMonitor Does Not Work With Quoted Process Name Support 5
cgunhouse ProcessMonitor Does Not Work With Quoted Process Name Support 0
D Copy directory tree without repeating directory name Support 32
L How to easily cd to \users\name? Support 8
D unzip /d in directory with space in name Support 1
S Listing the paths of all directories of a given name Support 4
G Copy a file to unknown directory name Support 5
J How to use RegQuery for value with \name Support 2
R How to? Open Take Command at current folder Support 7

Similar threads