in reply to batch query - win32

Writing a simple wrapper script in perl would probably be easier than doing it in a DOS batch file. Also, it's gonna jive with something you already know.

The thing about system is that it returns the exit value of the system command. System commands return 0 for success. So you really want to say system "blah" and die as opposed to system "blah" or die.


------------
:Wq
Not an editor command: Wq

Replies are listed 'Best First'.
Re: Re: batch query - win32
by Arbogast (Monk) on Nov 04, 2003 at 05:13 UTC
    Win32::Process might work better than system()
Re: Re: batch query - win32
by and (Pilgrim) on Nov 04, 2003 at 05:14 UTC
    system "blah"and die ...

    Yes. Exactly.