playing a dvd using C#
Posted
by user203212
on Stack Overflow
See other posts from Stack Overflow
or by user203212
Published on 2010-04-16T16:47:03Z
Indexed on
2010/04/16
17:23 UTC
Read the original article
Hit count: 325
c#
Hi, I have a dvd copied in my hard drive. It has a folder called video_ts. I am planning to run VLC player to play it. i was wondering how can I play this dvd using c#. I do not want to use a activex control inside c#. All I need to do is run the vlc.exe using process. I have already done that. But how do I select a specific file from the code that will start playig in the vlc player. My code is.
System.Diagnostics.Process Proc = new System.Diagnostics.Process();
Proc.StartInfo.FileName = @"C:\Program Files\VideoLAN\VLC\vlc.exe";
Proc.StartInfo.Arguments = @"C:\Test\Legacy\VIDEO_TS\VIDEO_TS.BUP";
Proc.Start();
I am trying to send the file name as a argument to run it in the vlc.exe . But its not working. Its just opening up the vlc player. I dont want the user to select the file manually.
© Stack Overflow or respective owner