【1】如果介词but前面出现动词do/does/did形式,but后面接不带to不定式。
He did nothing but laugh.他只是笑。
He had nothing to do but cry.他除了哭,无事可做。
【2】如果介词but前面没有出现动词do/does/did形式,but后面接带to不定式。
He had no choice but to stay here。除了待在这里我别无选择。
I had no choice but to sleep .除了睡觉我别无选择。
综合上述可得出网友以下这个句子是正确的
He does everything but wash clothes.【正确】