Done Enhanced FUNCTION and ALIAS definition syntax

May 20, 2008
3,515
4
Elkridge, MD, USA
Often one wants to define a function that cannot be defined in a single
string. This can currently be done only by writing a batch file, and return
the value it generates via @EXECSTR[], e.g.

function jpv=`%@execstr[jpv %1]`

If the above function is used as a reporting field in PDIR /S, there is a
heavy overhead associated with such a definition. What I am looking for is a
method whereby the whole batch file would be stored in the function table.
Restricting the use of such definitions to "function definition files"
(i.e., files loaded by the FUNCTION /R option) should not be a burden, since
the batch file would have to be written anyway.

A similar situation exists for aliases, though it is much less severe. An
alternative syntax to just using command groups and command separators would
be beneficial.

Last but not least, the use of DO iteration in aliases and functions would
be very useful, even if doing it at the command prompt is not feasible.
--
Steve
 
Similar threads
Thread starter Title Forum Replies Date
S Done Enhanced ALIAS, SET, ESET and FUNCTION commands Suggestions 0
rconn Enhanced Plugin SDK Suggestions 0
Roedy Done Enhanced FFIND Suggestions 1
S Done Enhanced CASE values in SWITCH Suggestions 29
S Declined Support for Enhanced Deflate in ZIP Suggestions 1
S Done Enhanced activity logging Suggestions 0
S Done Enhanced date and time range specifications Suggestions 0
S Done Enhanced TYPE command Suggestions 9
S Declined Enhanced "wipe" and recycling Suggestions 2
S Declined Enhanced redirection Suggestions 0
S Declined Enhanced file comparisons Suggestions 0
S Declined Enhanced @FILE for COPY, DESCRIBE, MOVE, RENAME, SYNC, TOUCH /R Suggestions 0
S Declined Enhanced SHORTCUT command Suggestions 0
Joe Caverly Done Function that returns environment variable type Suggestions 1
Charles Dye @IPADDRESSV6 function Suggestions 1
R @BTWN[low number, high number] function Suggestions 0
mfarah Done pdir /(k) for the output of the @CKSUM function. Suggestions 0
E Done Support for IPv6 (ping function) Suggestions 5
Joe Caverly Done ISLIBRARY Conditional Expression Status Test and Function Suggestions 0
A @REALPATH variable function. Suggestions 0
rps Declined @ffind[] function. Suggestions 3
K_Meinhard Done @dowi function Suggestions 2
R (Nearest) Weekday function Suggestions 4
N Done Add display options to new HASH function Suggestions 1
mfarah Done Posix 100.32 compliant %@cksum[] function. Suggestions 12
Joe Caverly Function that converts an expression into a date value Suggestions 0
mikea Done Function to create GUID Suggestions 13
S Declined Character / string classification function Suggestions 9
M Done Enhancement to @PID function... Suggestions 4
M Declined Function to to verify file name validity... Suggestions 4
S Done Window positioning commands and current position function Suggestions 0
S Declined Indirect function specification Suggestions 2
S Done Command and help enhancement, esp. ALIAS, FUNCTION and SET Suggestions 2
Charles Dye Done @PLUGINVER function Suggestions 0
Charles Dye Done v11 idea - Date picker function Suggestions 3
vefatica Declined @@key alias at beginning of partial command line Suggestions 10
rps Done Alias debugger Suggestions 1
Gisle Vanem How to? Accessing alias shared memory Suggestions 4
R Done Just a Help addition - Alias name can use variables Suggestions 1

Similar threads