AnyOne know how?
--
Posted via CNET Help.com
http://www.help.com/
http://bigfoot.com/~batfiles/main/batricks.htm
20. Use the pipe to place seperate commands on one line.
21. Del all files in a directory, regardless of attributes.
22. Multiple pipes, and an ansi trick.
23. Place comments on a command line.
--
Regards,
Outsider
MS-DOS 6.22, Windows for Workgroups 3.11, Netscape Navigator 4.08
"Don't overestimate the decency of the human race." -- H.L. Mencken
With DOSKEY already loaded, a Control-T can be used as a command line
command separator.
Without DOSKEY loaded, a FOR statement can be used (at the command
prompt or in a batch procedure, etc.). Try something like this ...
for %v in (dir doskey) do %v
Double up the percent signs for use in a batch procedure.
In Win 95/98 double quotes can be used to add parameters. For example,
...
for %v in ("dir somefile.* /b" doskey) do %v
One other trick is to use the PIPE symbol, as long as long as the
statement being piped doesn't create useful output, the statement being
piped into doesn't require/use information piped into it and you don't
mind creating a couple of useless temporary files, something like ...
doskey | dir somefile.* /b
Tom Lavedas
-----------
http://www.pressroom.com/~tglbatch/
Cool trick Tom!
BTW, do you happen to have a list of the various control
characters which can be used at the prompt, in batch files
or written either in qbasic edit or the stand alone version?
>NytMare wrote:
>>
>> I heard that there is a way to execute two dos commands on the same like..
>> i.e.. execute dir and doskey? or any other dos commands.
>
>With DOSKEY already loaded, a Control-T can be used as a command line
>command separator.
Control-T is also the default command separator in Toddy, but you can
set a different one using the /CC switch.
Under 4DOS the default command separator is ^ (the caret or shift-6,)
but you can change it using SETDOS /C.