I'm designing a console application for the first time in my career. This console application is an engine which will do a task every night at particular time. I'm going to schedule this application using windows task scheduler.
Now I need to log every step in this task. I'm not sure what logger best suits for this kind of application. ...
If I have a function which accepts an out parameter and accepts an input form console -
public void Test(out int a)
{
a = Convert.ToInt16(Console.ReadLine());
}
How can I accept an input using Console.Readline() during NUnit test? How can I use NUnit to test this method?
I tried using this code for my NUnit test case -
[Test...
Hi,
I have a small C++ console application which presents a menu then performs the chosen operation.
In addition, I've written a VBScript which runs over the StdOut (achieved by Exec) and enters to StdIn the values.
However when I'm trying to executet this script the console application is stuck in the scanf call and the script doesn'...
I am developing a console application for my public library as a school project. The console application will run as soon as the user logs on and do some background work.
The thing is, I don't want the console application to actually appear. I need it invisible. The last thing I need is complaints because some people got freaked out tha...
I have to run a console application from my Windows Application. The console application I want to run is an Embedded Resource in my application, and I am calling it like this:
// Run the updater and grab its output
Process Updater = new Process();
Updater.StartInfo.FileName = "C:\\tmp\\tmp.exe";
Updater.StartInfo.WindowStyle = ProcessW...
I have simple 3 tier web application and have mostly CRUDE functionalities. Recently I required to add new console application to the existing solution in which I call data layer methods for retrieving data from DB but I get an exception "The type initializer for threw an exception."
When I debugged I found that the exception is thrown a...
Part of an idea of mine are the following things:
Mouse access in a C# console application
Setting a special font for a console application (to provide the correct codepage 437 with all the RIGHT graphical stuff, not that é and à - stuff)
Providing a DirectX - graphical - window on top of a console application that moves with the conso...
Is there a way I can programmatically change the <endpoint address="..." /> value of a web service? In my app.config file, I have the following code:
<system.serviceModel>
<bindings>
...
</bindings>
<client>
<endpoint address="http://dev.remotedomain.com/WebServices/WebService.asmx"
binding="basicHttpBindi...
How can I tell whether the user launched my console application by double-clicking the EXE (or a shortcut), or whether they already had a command line window open and executed my console app within that session?
...
I am new to Qt.
I am building a console application and I need to process lot of real world html pages. QtWebkit comes as an easy choice because of clearly cut APIs and easy availability.
I checked out the docs and they say that I can load pages by using QWebView::load(). But I am building a console application and I cannot use a widge...
Hi all,
Unicorn just provide a URI and push the button. It will call a series of validation services and report the results.I have already downloaded and installed Unicorn.
To Download the source code it is only available for download from the Mercurial repository. To download it, use the command "hg clone https://dvcs.w3.org/hg/unic...
I have written a console application in .Net 3.5 to test a component that seems to be erroring randomly (The best kind). The interesting thing is that it seems to die regularly when I double click the exe, but when I open a command prompt and execute the same application from there with the same parameter selection (I.E. non, because you...
Basically I want 200 characters maximum to come up in Console.ReadLine() for user input before characters start being suppressed. I want it like TextBox.MaxLength except for console input. How would I go about this?
And I don't want to do input.Substring(0, 200).
Solved:
I used my own ReadLine function which was a loop of Console.Read...
Hi,
I've like to be able to run reports from a console application.
The reason I need to do this is because we have a single template with a few params and many reports running off that template - each providing different arguments. It is easier for us to schedule a console app and have the report arguments read from a database.
How ca...
Hello,
how can I write DIRECTLY into console, without bothering with stdout in c#? I'm upgrading some old program, which has it's stdout redirected into file (because the output matters), and I need somehow to write directly to console, and that the text won't appear in stdout. Is it possible (without using WinAPI)?
EDIT: I'm aware of ...
My brother and I have been playing the original Oregon Trail on an Apple II emulator, it's so fun. We want to make a clone of it that is sort of a parody but still the same concept and similar engine, we also want to maintain the classic retro charm by using a very similar resolution and the same style of low color bitmap graphics (examp...
I googled around for information on how to hide one’s own console window. Amazingly, the only solutions I could find were hacky solutions that involved FindWindow() to find the console window by its title. I dug a bit deeper into the Windows API and found that there is a much better and easier way, so I wanted to post it here for others ...
This is my problem:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
public abstract class EntityMember<T>
{
public T Value { get; set; }
}
public class Int32EntityMember : EntityMember<int?>
{
}
public class StringEntityMember :...
We run a Fortran console program we have run for years. Recently we purchased identical new HP server class machines (4 processors, 8 gig ram, 4 hard drives) for everyone in the office. We configured them identically as nearly as we know. We can compile the Fortran program on one machine, pass the executable to the different machines,...
I want to store the connection string and some parameters in app.config file which we generaly do for windows aplication but I can't find app.config file for console application. So how should I use this file, how to add this file or there is some other work arroud for the same functionality. I am working in console application
...