is it possible ? any samples/patterns or ideas on how to go about it ?
Update -
this essentially becomes a text browser which displays various tables of information based on various commands on the prompt like typing the url in a browser
now instead of typing various commands like
prompt>command arg1 arg2
if only you could say "click"...
Hi all,
I have a windows console app (that accepts parameters) and runs a process.
I was wondering if there was any way to run this app from within a windows form button click event. I would like to pass an argument to it as well.
Thanks
...
Hi all,
I have a console app that will be running through a scheduled task and what i'd like to do is have it write to an Event Log in a catch block. I've tried using
EventLog.WriteEntry("My App Name","Error Message - " ex.ToString() );
but for some reason it is not writing the error.
Am i doing something wrong?
Thanks
...
How to determine whether code is getting executed in a console app or in a windows service?
...
I'm looking for dialog widgets for the Linux Console (not X, but the "terminal" console) that would show a countdown in seconds next to a widget that might be a menu list or a textbox. Ideally this might be a standalone program, like dialog, that is supplied parameters to control its behaviour. When the countdown reaches 0, the selecte...
I'm creating a Windows Console application written in VB.NET and I have a few processes that need to be called only once during the lifetime of the application. If it was an ASP.NET application, I put these in the Appliction_Start method of the Global.asax.vb file. Since there isn't a Global.asax.vb for Console applications, is there an ...
I have a windows service, written in c# and I need to run a console application from it.
Console application also written in c#.
Console application is running fine when it is run not from windows service. When it is ran from ws it doesn`t do anything it should and as it should work for 10-20 seconds I see in debug code is executed at ...
For a C++ console application compiled with Visual Studio 2008 on English Windows (XP,Vista or 7). Is it possible to print out to the console and correctly display UTF-8 encoded Japanese using cout or wcout?
...
I have a console app that performs a lengthy process.
I am printing out the percent complete on a new line, for every 1% complete.
How can I make the program print out the percent complete in the same location in the console window?
...
I've got a couple questions about .net console applications.
I created the console app, and included a solution file during the create, but when I open the solution file, it only shows the project, not the solution. Why doesn't the solution load in the solution explorer?
Also, I don't seem to be able to build the project in 'Release' m...
I want to get my Console.WriteLine() commands to appear in my "Output" window with my Debug.WriteLine() statements. I think I figured out how to do this once but I can't remember / find on google how to do it again.
I seem to remember being able to do this in the app.config
I find plenty of instructions on how to bet console and debug ...
I need to call a 3rd party library that happens to spew a bunch of stuff to the console. The code simply like this...
int MyMethod(int a)
{
int b = ThirdPartyLibrary.Transform(a); // spews unwanted console output
return b;
}
Is there an easy way to supress the unwanted console output from ThirdPartyLibrary? For performance re...
I have following code in Program.cs in console application
class Program : IView
{
private static ViewPresenter _presenter;
static void Main(string[] args)
{
_presenter = new ViewPresenter(this);
}
}
but I cant pass this to presenter, as Main method is static. Now how could I make this work ?
...
I need a way to show multiple lines of text (e.g. 1000 lines) in a console application, and be able to scroll through all lines. However, when I do something like the code snippet below, I can only see the last 100 or so lines in the console.
for (int i = 1; i <= 1000; i++)
{
Console.WriteLine(i.ToString());
}
My initial though was...
I need to programmatically send a Page Down key press to a console application and I'm lost.
I tried Console.SetIn whith a StreamReader over a MemoryStream, then wrote 34 (Page Down in ConsoleKey enum) and nothing happenned.
...
I was wondering how to make a program that can output to every line of the console and not just output a line to be tacked on to the bottom. How can I get control of the whole console like that so I could write console based apps?
...
A Delphi console application can be run from the command line of an existing console window, and it can be run by double-clicking on its icon. In the latter case it will create its own console window, and close it once the application terminates.
How can I tell if my console application has created its own window?
I want to detect thi...
Is there a proper plugin or a class to perform background and foreground text colorization within a common output console?
I remember, when programming Pascal we all used to play with textcolor(...) procedures to make our small educational programs look more pretty and presentational.
Is there anything similar in Ruby?
...
Related:
Should I include a command line mode in my applications?
How to grab parent process standard output?
Can a console application detect if it has been run from Explorer?
I want to build a console app, that is normally run from the command line.
But, when it is double clicked from within Explorer (as opposed to being r...
Similar to this question, except the console program being wrapped up in the WPF application produces coloured output, so it would be nice if I could capture the colour as well as the text.
This is my first WPF program and I'm not sure how to go about finding/modifying the right control, currently I'm just using a TextBox which works bu...