|
Lyriikka Beginner
Joined: 02 Oct 2002 Posts: 21 Location: Finland
|
Posted: Mon Dec 02, 2002 4:21 pm
#launch parameters and Win98 and W2K |
I'm using 'GREP for Windows' to grab text lines from files:
http://www.interlog.com/~tcharron/grep20d_win.zip
I use this alias, e.g. 'gre log1.txt tells you'
#al gre {#launch {command.com /C grep ~"%-2~" ~"c:zmudlogs%1~" > ~"c:zmudgre_gra.txt~"}}
... So the result of the grep is written into the gre_gra.txt.
I use zMUD 6.37 and 5.55 in my Win98 and this alias works in both of them, however, when I use W2K this alias refuses to work.
How do I get it working in W2K?
Lyriikka the GenTnLadyLover
batmud.bat.org:23 |
|
|
|
Charbal GURU
Joined: 15 Jun 2001 Posts: 654 Location: USA
|
Posted: Mon Dec 02, 2002 6:56 pm |
Instead of command.com, try cmd.exe on your 2000 system.
- Charbal |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue Dec 03, 2002 12:23 am |
Using the command.com call syntax is not necessary for this application. The /C syntax was created to allow program to call out to the functions built into to the dos shell command language. One of those functions was running batch files and that is where the syntax was most commonly used.
The #LAUNCH command in zMud will run any executable program without the extra steps you are currently employing. |
|
|
|
Lyriikka Beginner
Joined: 02 Oct 2002 Posts: 21 Location: Finland
|
Posted: Tue Dec 03, 2002 1:17 pm |
Yea, seems to work without it.
But grep.exe still wont work proprely.
#launch {grep ~"%-2~" ~"c:zmudlogs%1~" > ~"c:zmudgre_gra.txt~"}
I think the redirection mark > its the one that makes it bug. But I don't know how to make it work, can anyone help?
Lyriikka the GenTnLadyLover
batmud.bat.org:23 |
|
|
|
|
|