This works for me:

Code:
shell '%comspec% /c "dir > c:\kix\log.txt"'

_________________________
Eric