例例文
I don't know what to do with all these old books.
この古い本を全部どうしたらいいのか分からない。
EN英英で言うと
to deal with or use something
源語源・イメージ

with は「~を相手に」。
前置詞のイメージ:with=一緒に・関わる
!入試ポイント
what to do with ~(~をどう扱うか)の形。have something to do with ~(~と関係がある)と区別。
what to do with ~ / What did you do with ~? で「~をどう処理する・扱う」(I don't know what to do with this)。could do with ~ は「~があるとありがたい」(I could do with a cup of tea)。have something / nothing to do with ~ は「~と関係がある/ない」。
同じ意味deal with ~
VSここが違う!
do with ~vsdo without ~
do without は「~なしで済ませる」。do with は「~をどう扱う」「~で済ませる」。見分け方:what to do with + 物なら処理、without なら「なしで」。
I don't know what to do with all these old books. / We'll have to do without a car.
do with ~vshave to do with ~
have (something / nothing) to do with ~ は「~と関係がある/ない」。what to do with ~ は「~をどう処理するか」。見分け方:have と something / nothing があれば関係。
What should I do with this box? / This has nothing to do with you.
覚覚え方
with は「~を相手に」。その物を相手に何をするか(do)=どう扱うか。疑問詞 what と組んだ形でよく出るので、what to do with ~ をひとかたまりで覚える。
Q入試形式の例題
I've moved into a smaller apartment, and I don't know what to do all these old books.
「~をどう処理するか」は what to do with ~。for / to / of は what to do と組んで処理の対象を示せない。狭い部屋に引っ越して、古い本をどうしたらよいか困っている場面。