console-application

Using Enterprise Library DAAB in C# Console Project

How can I prepare the configuration settings (App.config, maybe?) I need to use Enterprise Library Data Access Application Block in a C# console project? Following is what I currently trying with an App.config in the console project. When I call DatabaseFactory.CreateDatabase(), it throws an exception which says: "Configuration system ...

How to open a console app from a webform

Hi, I have a collection of sites running on a single server. The server also runs a console application which collects data and distributes this data to the websites. I am not always about to check if the application is running and I would like to give the end user (a select few users!) the option to start/restart this application on t...

How to stop the Bottle webserver when started from subprocess

Hello all, I would like to embed the great Bottle web framework into a small application (1st target is Windows OS). This app starts the bottle webserver thanks to the subprocess module. import subprocess p = subprocess.Popen('python websrv.py') The bottle app is quite simple @route("/") def index(): return template('index') ru...

expanding a C# console app to a WPF app

What's the best way to convert a simple console application to a WPF? and I am a COMPLETE newb so be gentle!! The console app displays information according to user choices.. real simple stuff, but I'd like to create a GUI for it in WPF.. and am looking for initial steps on how to go about it. ...

Could not load type in Custom Profile provider

I am writing a small console application in C# that references a custom assembly that implements custom .net Profile provider. I have added the following sections to my app.config file which references the custom class and assembly. <system.web> <profile defaultProvider="MyCompanyProfileProvider" inherits="MyCompany.Web.User.GenericPro...

I'm having trouble launching my WCF service using a console application. What can be wrong?

Here's my code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ServiceModel; using BankServiceClient.BankServiceReference; namespace BankServiceClient { class Program { static void Main(string[] args) { Uri baseAddress = new Uri("http://localhost:80...

Dispatcher.CheckAccess() isn't working from my console application, is there a better way.

I wrote an application in WPF / VB and separated the business logic and UI into different projects. The business layer uses a serial port which runs on a different thread, Now that I'm trying to write a command line interface for the same business layer, it seems to fail when .Invoke() is called. (no error, just doesn't work) I'm pre...

Cooler ASCII Spinners?

In a console app, an ascii spinner can be used, like the GUI wait cursor, to indicate that work is being done. A common spinner cycles through these 4 characters: '|', '/', '-', '\' What are some other cyclical animation sequences to spice up a console application? ...

How to run a .Net Console App in the background

I have Console Application written in C# that is scheduled to run every 15 min. or so using the Built in Windows Task Scheduler. Every time it runs the black console box pops up for the duration of it's execution and then closes. I am not writing anything to the console. Is there a way to make this run in the background? ...

Load Assembly in New AppDomain without loading it in Parent AppDomain

I am attempting to load a dll into a console app and then unload it and delete the file completely. The problem I am having is that the act of loading the dll in its own AppDomain creates a reference in the Parent AppDomain thus not allowing me to destroy the dll file unless I totally shut down the program. Any thoughts on making this co...

How can I run a local Windows Application and have the output be piped into the Browser.

I have Windows Application (.EXE file is written in C and built with MS-Visual Studio), that outputs ASCII text to stdout. I’m looking to enhance the ASCII text to include limited HTML with a few links. I’d like to invoke this application (.EXE File) and take the output of that application and pipe it into a Browser. This is not a o...

Simple "Hello World!" console application crashes when run by windows TaskScheduler (1.0)

I have a batch file which starts multiple instances of simple console application (Hello World!). I work on Windows server 2008 64-bit. I configure it to run in TaskScheduler, at startup, and whether user is logged-in or not. The later configuration means that the instances will run without GUI (i.e. - no window). When I run this task, ...

How to create ASCII animation in Windows Console application using C#?

I would like it to display non-flickery animation like this awesome Linux command; sl http://www.youtube.com/watch?v=9GyMZKWjcYU I would appreciate a small & stupid example of say ... a fly. Thanks! ...

How to create ASCII animation in a console application using Python 3.x?

I would like to port this question to Python (Windows + Linux + Mac Os) http://stackoverflow.com/questions/2725529/how-to-create-ascii-animation-in-windows-console-application-using-c Thank you! ...

Setting the Cursor Position in a Win32 Console Application

How can I set the cursor position in a Win32 Console application? Preferably, I would like to avoid making a handle and using the Windows Console Functions. (I spent all morning running down that dark alley; it creates more problems than it solves.) I seem to recall doing this relatively simply when I was in college using stdio, but I...

Refresh Excel ListObject from a Commandline appliaction

Hello, I'm trying to update the information of a listObject hosted in a Workbook created by an Excel Addin (example Code1) with an commandline application. I've tried creating an instance of Excel and accessing at all the listObjects but GetVstoObject always returns null objects. I think is a security problem, but I don't know how to r...

How do I wait until a console application is idle?

I have a console application that starts up, hosts a bunch of services (long-running startup), and then waits for clients to call into it. I have integration tests that start this console application and make "client" calls. How do I wait for the console application to complete its startup before making the client calls? I want to avoid...

How can I write fast colored output to Console?

Hello world! I want to learn if there is another (faster) way to output text to the console application window using C# .net than with the simple Write, BackgroundColor and ForegroundColor methods and properties? I learned that each cell has a background color and a foreground color, and I would like to cache/buffer/write faster than us...

Debugging: Attach to Process for Console App running inside cmd.exe

How do you "Attach to Process..." for a console application thats running from a CMD window and not launched by F5? The reason I ask is because the application takes command line arguments and I want to have a genuine experience. I've even attaching to CMD.exe, but no luck, or setting a break-point using Console.ReadKey() with also no ...

How to hide a console application in C#

Hi, I have a console application in C#, and I want that the user won't be able to see it. How can I do that? Many thanks, ...