C++ プログラムから次のコマンドを実行しようとしています。
system("vssadmin list writers > tmp.txt ");
私はこの出力を得ています:
"vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool (C) Copyright 2001-2005 Microsoft Corp.
Error: A Volume Shadow Copy Service component encountered an unexpected error. Check the Application event log for more information.
イベント ログには、22 と 8193 の 2 つのエラーがあります。
コマンドラインから直接実行すると、正常に動作します。
ありがとう。