Page 1 of 1 1
Topic Options
#37453 - 2003-03-06 04:50 PM output shell command to txt file
vanloon Offline
Fresh Scripter

Registered: 2002-05-27
Posts: 34
Hi,

I am running the following command trough the kix script.
shell "\\ivwdsdc02 apl\logonscript\icons\iconupdate.exe \\ivwdsdc02\apl\logonscript\icons\config.txt"

I want to have some kind of output in a txt file so I can see if it worked. Can somebody give me a hint how I can do this??
Thanks,

Michel

Top
#37454 - 2003-03-06 04:52 PM Re: output shell command to txt file
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Use the '>' redirector as in
code:
$dir='\\ivwdsdc02 apl\logonscript\icons\'
shell '%COMSPEC% /c '+$dir+'iconupdate.exe '+$dir+'config.txt >'+$dir+'reslt.txt'



[ 06. March 2003, 16:55: Message edited by: sealeopard ]
_________________________
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 1636 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.051 seconds in which 0.025 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