Well an easy way is to use the -p switch for /ignore. Then the query window shouldn't open at all.