Windows character mode applications using the functions provided by the console I/O functions. This tag should be used by questions about the console functions, structures and winevents, which support character mode applications.
Questions tagged [windows-console]
614 questions
4
votes
1 answer
C# library for more ConsoleColors?
I have been writing console apps for a while and noticed that the consoles (such as cmd.exe) support RGB colors but the 'Console' class for .NET doesn't. Does anyone know of a library that would allow RGB colors for a console app in C#?

user2038443
- 163
- 1
- 11
4
votes
1 answer
Getting no output to win console when raising exception containing unicode literal (u"\u0410")
I came across obscure problem when raised Python exception got printed to win console. When exception message contains any unicode literal it is not printed at all or is printed improperly. Console encoding is cp866
When python default encoding is…

Unicorn
- 1,397
- 1
- 15
- 24
3
votes
1 answer
Remove all files and directories except one directory
I want to use windows command line to remove all files and directories except one, the folder ".svn".
I tried doing it like this, in two steps (my working directory is the folder that I want to clean):
First remove all directories with the…

Nick V
- 1,793
- 2
- 17
- 19
3
votes
2 answers
what's your utf-8 console setting when programming Google Go under Windows
We know google's Go default is UTF-8.
I found in my Windows XP. It can not display correct about the UTF-8.
The following code display in wrong.
package main
func main() {
println("中文")
}
I've googled. It said use another font + reg + chcp…

Daniel YC Lin
- 15,050
- 18
- 63
- 96
3
votes
1 answer
How to run wxPython dialog without command prompt window?
Possible Duplicate:
How can I hide the console window in a PyQt app running on Windows?
I have just started to explore wxPython for dialogs, and one thing that I've noticed so far is that every time I start a script (via double click or F5 in…

ch1zra
- 171
- 15
3
votes
1 answer
Embedding a DOS console in a windows form with Visual Basic
I've managed to find from other questions some data that allows me to achieve the next code:
Imports System.Runtime.InteropServices
Public Class Form1
_
Public Shared Function MoveWindow(ByVal hWnd As IntPtr,…

Alrik
- 374
- 3
- 14
3
votes
1 answer
Windows console - BAT compatibility
I have a command line statement which works perfectly when manually typing it into the console, however, when I put it in a bat file it doesn't work.
for %f in (*.flac) do ffmpeg -i "%f" -acodec alac "%~nf.m4a"
Here is the error message when I try…

Michael
- 5,994
- 7
- 44
- 56
3
votes
1 answer
Python on windows - conhost.exe CPU usage
I'm running a Python script on Windows, and I've noticed that even though the Python process takes ~8% CPU, the associated conhost.exe process takes ~14%.
Why is this so? How come such a large part of the CPU consumption is in the conhost and not in…

Jonathan Livni
- 101,334
- 104
- 266
- 359
3
votes
2 answers
Use "rmdir" functionality but keep specified directory
I would like the functionality of rmdir /s but I need to keep the specified directory. rmdir /s removes all files and sub directories in addition to the directory specified.
I've also tried using del /s but then I am left with empty folders in the…

Justin Self
- 6,137
- 3
- 33
- 48
3
votes
3 answers
Coloring Perl output on windows command prompt
This question is related to the question:
How do I color output text from Perl script on Windows?
But is a bit more specific. I have gotten cross-platform colorization working, to some extent:
use Term::ANSIColor;
use Win32::Console;
if (!(-f…

RG boomer
- 43
- 4
3
votes
2 answers
From Python run WinSCP commands in console
I have to run a few commands of WinSCP from a Python class using subprocess.
The goal is to connect a local Windows machine and a Windows server with no FTP installed and download some files. This is what I tried
python
proc =…

Diego
- 33
- 1
- 1
- 3
3
votes
3 answers
model:generate gives "Missing required arguments: name, attributes"
I'm on the Windows console and here is a script of my package.json:
scripts: {
...
"sequelize": "node_modules\\.bin\\sequelize.cmd"
}
When I run this command: npm run-script sequelize model:generate --name Person --attributes…

JacopoStanchi
- 1,962
- 5
- 33
- 61
3
votes
1 answer
How do I get rid of the ellipsis in Pycharm console and display information instead using Quandl?
I am working with Quandl in Pycharm. I tried to get information from the web and display it on the console; however, when I try to print the data, it shows an ellipsis instead. This problem only happens when using Pycharm. In the Python console…

Andrew
- 35
- 5
3
votes
1 answer
Change Windows console size
I have been trying to figure out how to resize the console window.
Here is the code of a function i am using:
#include
#include
#define WIDTH 70
#define HEIGHT 35
HANDLE wHnd;
void setup() {
SMALL_RECT windowSize =…

2xWollert
- 61
- 6
3
votes
2 answers
How to hide cmd.exe and cscript command prompts?
I have a test.cmd file on my desktop. In it contains the following line:
cmd.exe /c "cscript foo.js"
Is it possible to completely silence/quiet/supress/hide any and all console windows from popping up? I would like to execute the .cmd without any…

Nicole
- 99
- 3
- 7