Dear,

Your problem is the quotations.
We suggestion following format
code:
$chain="xxx"
shell '%comspec% /c find "$chain" file.txt > result.txt '

greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA