I have an application that can be run using GUI and Non-GUI environment. In order to execute with non-GUI environment I need to check condition for “Executing the Application using Shellprompt”(so that GUI should not pop up). I need to check the condition for executing if the application is using shellprompt. How can I specify or check the above condition? Thanks in advance.
Regards,
Arasu.
so if I understand correctly you are currently able to specify the app should start up on command prompt from a setting in the UI, but you want to be able to specify it should start up on command prompt from the command prompt? you can use the args in the main method of your app for that, just as you would pass args to a comon command line app. like so (from Program.cs):
I may have misread your question so if my answer is not of help to you.. maybe you’ll find this answer helpful instead.