Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
コマンドラインからExcelファイルを閉じる方法/機能はありますか?
Windows コマンド ライン インターフェイス (cmd.exe) を意味する場合は、次を使用できます。
taskkill /F /IM excel.exe
これは、現在実行中の「excel.exe」というプロセスを強制的に閉じます。これは手間のかかる方法です。
特定の Excel プロセスに関連付けられたワークブックを閉じることはより困難であり、vbscript などを使用しないと不可能です。それがあなたのやりたいことかどうか教えてください。