Teriadox
(Lurker)
2004-02-06 12:57 PM
Executing command with >

I'm trying to make the command NETSH to dump its output to a file. But when using the following command, "SHELL netsh dhcp server \\windows dump > dump.dmp" in Kix I only get output. I suspect due to the > operator. But how to solve this problem so Kix executes the command ???

Radimus
(KiX Supporter)
2004-02-06 01:15 PM
Re: Executing command with >

if you use a redirector, you have to specify comspec...

shell '%comspec% /c netsh dhcp server \\windows dump > c:\dump.dmp'


Teriadox
(Lurker)
2004-02-06 01:36 PM
Re: Executing command with >

Thanx this works

Les
(KiX Master)
2004-02-06 02:45 PM
Re: Executing command with >

There is a FAQ on that.

Sealeopard
(KiX Master)
2004-02-06 02:56 PM
Re: Executing command with >

And UDFs as well, that capture the output directly into a KiXtart string array for further processing.