Page 1 of 1 1
Topic Options
#113488 - 2004-02-06 12:57 PM Executing command with >
Teriadox Offline
Lurker

Registered: 2004-02-06
Posts: 2
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 ???
Top
#113489 - 2004-02-06 01:15 PM Re: Executing command with >
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
if you use a redirector, you have to specify comspec...

shell '%comspec% /c netsh dhcp server \\windows dump > c:\dump.dmp'
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#113490 - 2004-02-06 01:36 PM Re: Executing command with >
Teriadox Offline
Lurker

Registered: 2004-02-06
Posts: 2
Thanx this works
Top
#113491 - 2004-02-06 02:45 PM Re: Executing command with >
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
There is a FAQ on that.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#113492 - 2004-02-06 02:56 PM Re: Executing command with >
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
And UDFs as well, that capture the output directly into a KiXtart string array for further processing.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 515 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.053 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org