Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Lyriikka
Beginner


Joined: 02 Oct 2002
Posts: 21
Location: Finland

PostPosted: 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
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Mon Dec 02, 2002 6:56 pm   
 
Instead of command.com, try cmd.exe on your 2000 system.

 - Charbal
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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.
Reply with quote
Lyriikka
Beginner


Joined: 02 Oct 2002
Posts: 21
Location: Finland

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net