Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4570536
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:22:34+00:00 2026-05-21T19:22:34+00:00

I am starting a VLC job to record some streaming audio from within a

  • 0

I am starting a VLC job to record some streaming audio from within a c# function as follows (the actual args aren’t relevant to the question):

 Process proc = new Process();
 proc.StartInfo.FileName = "C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe";
 proc.StartInfo.Arguments = "someArgs";
 proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
 proc.Start();

If all works correctly, the Start() function returns immediately and a process is started locally (i.e. VLC).

  • How can I get the process ID of this VLC job so I can kill it later? Using proc.Close() closes the process, but does not terminate the VLC job.
  • What is the most effective way to kill the VLC job? I have admin privilege locally.
  • How can I test that the job did start correctly? Is there some status flag on the proc object I can test?

Thanks
Andrew

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T19:22:34+00:00Added an answer on May 21, 2026 at 7:22 pm

    The ID should be in your process object as proc.Id.

    You can kill it with proc.Kill().

    If there is a problem launching the process it will throw an exception (most likely a Win32Exception or an InvalidOperationException; see the help.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Starting from this example: http://support.microsoft.com/kb/828736 I have tried to add a test function in
Starting a new GWT application and wondering if I can get some advice from
Starting from the solution provided by the Nick Caver I wish to save some
Starting with an empty dataframe, I need to fill the dataframe as follows: A
Starting from scratch with very little knowledge of .NET, how much ASP.NET should I
Starting from scratch is hard. How do you do it? I quite like color
Starting from an Html input like this: <p> <a href=http://www.foo.com>this if foo</a> <a href=http://www.bar.com>this
Starting from an Html input like this: <p> <a href=http://www.foo.com>this if foo</a> <a href=http://www.bar.com>this
Starting from Windows Server 2003, Windows included a new tool which calculates the effective
Starting from branch master, to merge a topic branch one just says git merge

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.