1.

Solve : doskey macros?

Answer»

Could someone give me an EXAMPLE of how to use $* in a command line...

I'm looking at a book that explains it's definition, but I still don't get it $* ACTS as a placeholder for additional parameters:

e.g. Quote

doskey d=dir /o-n
will list the directory in reverse alpha order but you cannot add any further parameters at execution TIME. If, at the command prompt, you enter Quote
d /b
the /b parameter will be ignored and a FULL listing in reverse alpha order will be produced.

However, Quote
doskey d=dir /o-n $*
will allow further parameters to be added so that Quote
d /b
will PRODUCE a listing in reverse order in bare format.

Heaps more info here...

thank you sir You're welcome..


Discussion

No Comment Found