私はこのアプリケーションでvb.net Windowsアプリケーションを持っています。別のexeファイルをサイレントモードで実行したいのですが、最初にこのexeファイルをコマンドラインで実行しましたが、これらの引数を渡す方法がわかりませんvb.coding process.start 。
コマンドラインから、このように渡しました。 D:\myapps>sample.exe /s /v/qn (正常に動作)
しかし、コーディングを通じて、私はこのように渡します
Directory.SetCurrentDirectory(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location))
Dim info As New System.Diagnostics.ProcessStartInfo
info.FileName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\sample.exe"
info.Arguments = "/s /v/qn"
Dim process As New System.Diagnostics.Process
process.StartInfo = info
process.Start()
MessageBox.Show(info.Arguments.ToString())
process.Close()
これは機能していません このコードの何が問題なのか 助けてください..