C# Console Program Won't Execute from Command Prompt

Posted by user1656066 on Stack Overflow See other posts from Stack Overflow or by user1656066
Published on 2012-09-08T02:56:15Z Indexed on 2012/09/08 3:38 UTC
Read the original article Hit count: 113

Filed under:
|
|
|
|

I have made a very simple program in C#. When I double click the compiled exe, it executes and works. When I run the exe from the command prompt, it does absolutely nothing. I have tried executing it from an Administrator command prompt also. I am on Windows 7. This is very frustrating.

The only command the program executes when ran is

SendMessageW(Process.GetCurrentProcess().MainWindowHandle, WM_APPCOMMAND, Process.GetCurrentProcess().MainWindowHandle, (IntPtr)APPCOMMAND_VOLUME_MUTE);

© Stack Overflow or respective owner

Related posts about c#

Related posts about Windows