次のコードがあります。
protected void VLC_Click(object sender, EventArgs e)
{
SecureString password = ConvertStringToSecureString("[password]");
string domain = "";
Process.Start(@"C:\Program Files\VideoLAN\VLC\vlc.exe ", "[username]", password, domain);
}
private SecureString ConvertStringToSecureString(string s)
{
SecureString secString = new SecureString();
foreach (char c in s.ToCharArray())
{
secString.AppendChar(c);
}
return secString;
}
私のVistaマシンのIISで実行されているaspxページのボタンにリンクされています。ブラウザーのボタンをクリックすると、タスク マネージャーでプロセスが開始されていることがわかりますが、プロセスが終了した直後に vlc ウィンドウが表示されません。
Windows で .exe をクリックしたかのように、ボタンで vlc をトリガーする方法はありますか?