console-application

Calling an application from ASP.NET MVC

Im trying to see if it is at all possible to call an external (console) application from an ASP.NET MVC app. They will both be build and deployed on internal servers, and both will use a custom form of security, validating the user VIA AD before anything executes, so Im not overly worried about the security risks. Basically, Im trying t...

How can activate a glass effect (windows Vista/7) in a console application using Delphi

As I can activate the glass effect on my console applications. I am using Windows 7 and Delphi 2010. I found this application so it should be possible. Thanks. ...

VB.Net 3.5 and SQL Server 2005 Windows Chat Application

Hi Currently following is the project I need to submit for my college assignment: A vb.net chat application with a ms sql server 2k5 backend, max 100 users with file transfer, one to one and group chat facility. Admin will create chat rooms which will be password protected for group chats. We will need to implement multithreading to fect...

Possible to pass name/value as parameter into Windows Console Application?

Hello, Building one of my first console apps. This console app will run some stored procedures I'm defining. I would like to be able to pass in parameter values via the command line. Is there any way to pass in a name value pair? For example: myConsoleApp.exe sproc_GetLastActives, @LastActiveDate - 11/20/2009 I know how to retreive...

Caching System.Console output

We have some methods that output a lot of coloured text to the Console. It's actually a menu that is built by looping through a collection of data. Because we are writing item by item (and one line contains many items in different colours), this process is rather slow on low-end and mid-end machines. On those machines you can see each ...

C#: Is it possible to have a single application behave as Console or Windows application depending on switches?

I have a simple application that I would like to sort of automate via switches. But when I do run it via switches I don't really want a user interface showing. I just want it to run, do it's job, print stuff out in the console, and exit. On the other hand if I don't run it with any switches I want the user interface to pop up. And in thi...

C# 2005 console application always requires elevated privileges

Hi, I am trying to build an automation application in C# 2005 express edition under windows vista. Problem is, Whenever I try to run this application, either from IDE or directly compiled executable under vista, it asks for elevated admin privileges, same executable runs under XP normally though! I'm unable to understand if this proble...

Changing font in a Console window in .NET

Hi guys, I have built a neat little Console app which basically interacts with ASP.NET projects on a users machine. I have a really trivial need, all I need to do is before I show the Console window, I need to have it a black background, a lime green foreground and a Lucida font. I could achieve the color part by using the static method...

Make win C# console application to show posibile command when user hit TAB

I am developing console application in C# with lot of parameters and sometime I as developer can't remember combination of parameters to call application in right way, I can't even and think how users will do it. So I asking You is there and what will be the proper (scholastic) way to make my application act like those UNIX OS. You know ...

Can you execute another exe from within a C# Console Application?

Can you pass arguments? Can you get the exit code back? ...

How to call event before Environment.Exit() ?

I have a console application. If something goes wrong i need to call Environment.Exit(); to close my app. I need to disconnect and close some files before my application exit. In Java i can implement Runtime.getRuntime().addShutdownHook(). Can someone help me? ...

WCF WebService content type error in IIS

Hi, I have a WCF Webservice that returns a bank list from database, when I use IIS server I get the message "Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'.". And when I use self hosting (application console) to run the WS, works without error...

Running windows service as a standalone application during DEBUG mode

I've a windows service that I need to install (installutil) every time I debug the application during development. Is there any way I can tweak the Installer/ProjectInstaller classes so that it runs as a console application during debug mode. Something like #if..#endif preprocessors can help? ...

Correct way to write console applications on GNU/Linux with C++

I really like the console and got recently hooked on programming console applications using nCurses mainly in conjunction with the C programming language. Unfortunately i think the ncurses API is totally borked and very hard to use, and the C++ bindings are undocumented. So my question is, what is THE API to use for C++ console applic...

viewing c# console app arguments

Hi, I have a console app (written in c#) that is passed various arguments from the command line by an external application (an InstallShield exe). Without adding code into the console app or InstallShield exe to log the value of arguments is there any way to see the value of the arguments passed to the console app? (perhaps via some so...

How do you keep the console from closing after the program is done in C?

Possible Duplicate: What is the Best Practice for Combating the Console Closing Issue? How do you keep the console from closing after the program is done in C? When I try to search for it I find lots of stuff about C++ and other languages, but nothing for C. Also, even for C++ there doesn't seem to be a definitive answer. So co...

VS console app - compile all libraries into an exe

Hi, I've created a basic console app in Visual Studio 2008, which references an external assembly. When I publish and install the project, both the executable and the external assembly are installed in the target folder. Is it possible to compile the project, and have all referenced assemblies included in the main executable - so ther...

Linq to Sql not submitting changes to database file in console app

I have an issue with my Linq to SQL Data Context no submitting in my console application. The following code is all that there is in the main() method. BlogRollerDataContext bdc = new BlogRollerDataContext(); bdc.Urls.InsertOnSubmit(new Url() { Approved = false, UrlTo = "http://www.google.com/", UrlFrom =...

How to prevent the console window to close when running a console application?

I'm creating a simple console application under Windows XP and wondering if there is a way to keep the console window open after the application is run from the Windows run prompt, without putting an endless loop at the end of main(). I want the app to behave like it was run from the run prompt after first typing cmd. ...

Using unicode font in c++ console app

How do I change the font in my c++ windows console app? It doesn't seem to use the font cmd.exe uses by default(Lucida Console). When i run my app through an existing cmd.exe (typing name.exe) it looks like this: http://dathui.mine.nu/konsol3.png which is entierly correct. But when i run my app seperatly(double-click the .exe) it looks l...