@NAME supports library functions

The @NAME internal variable function also supports library functions.

For example, if I have a library function called SetVar, @NAME returns SetVar.

I would suggest updating the help file to include this new feature;
Code:
Returns the base name of a file, or library function, without the path or extension.

Joe
 
May 20, 2009
293
5
57
ITALY
The @NAME internal variable function also supports library functions.

For example, if I have a library function called SetVar, @NAME returns SetVar.

I would suggest updating the help file to include this new feature;
Code:
Returns the base name of a file, or library function, without the path or extension.

Joe
I just did some tests, and it seems to me that @NAME simply takes the argument and takes away the last part, starting from the last dot.
So, echo %@name[abc] returns abc, even if abc is not a file, nor a function, nor an alias, nothing.
P.S. It is described in the help.
"
Note: The @NAME function makes no assumption about the existence of a file or directory. Its filename parameter can be any string and the function will attempt to extract from it a base name.
"


Regards

Rodolfo Giovanninetti
 
Similar threads
Thread starter Title Forum Replies Date
Joe Caverly How to? Get name of current LIBRARY function? Support 4
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
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
C Last TCMD that supports win 7? Support 5

Similar threads