Questions tagged [windows-console]

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.

614 questions
-1
votes
2 answers

C++ Create New Window From Console in New Thread (Win32)

Working environment: I am working in VS 2015, and a win32 console. Overview: I am creating a new window to act as a worker thread to perform some functions that cannot be completed in the console. The code to create the new window and complete the…
nomaam
  • 1,213
  • 2
  • 22
  • 37
-1
votes
1 answer

Equivalent of os.system without a console window?

I have a line that I can use it with os.system like; os.system("ffmpeg -i file.smh -acodec libmp3lame file.mp3") Where ffmpeg is an exe file. But It creates a console window on the screen. Normally I hide the console window by the following: import…
GLHF
  • 3,835
  • 10
  • 38
  • 83
-1
votes
1 answer

Console end of input

Consider the following loop: While Console.In.Peek() >= 0 Console.WriteLine(Console.ReadLine()) End While It works as expected (i.e. echos the input) when the input is re-directed from a file. However, when the lines are typed in console, the…
AlwaysLearning
  • 7,257
  • 4
  • 33
  • 68
-1
votes
2 answers

Get first and last day of previouse week on windows command line

Is there a way to get the first and the last day of the previous week into two variables on the windows command line? The date format I'd like to use is YYYY-MM-DD.
Klaus Stadler
  • 395
  • 3
  • 17
-1
votes
2 answers

run a script PHP from Windows command line without opening any browser

i want to run a script PHP (example : http://localhost/project/test.php) from the command line without opening any browser. i use the command : START http://localhost/projetc/test.php but this command opens a browser do you have any solutions?
userHassan
  • 23
  • 1
  • 6
-1
votes
3 answers

How to execute hidden command in cmd and exit

I have this line: C:\Windows\system32\cmd.exe start /minimized /wait cmd.exe /c picture.jpg I use this line in Target field of shortcut. When I run it, it opens minimized cmd, and picture. What I need is to close that cmd, after opening picture,…
user1437437
  • 1
  • 1
  • 1
  • 1
-2
votes
1 answer

Console appear automatically in every web page

When I browse any page, Inspect element appear in screen. Console shows some error code like, 403, 404, 400.It happened every single minute. Even when I write my question in stack overflow, it appears four or five times. It's impact in my device…
-2
votes
1 answer

Script waits for input when importing the webbrowser module

I'm having a small yet quite annoying issue with Python. When I import the webbrowser module in a Python script that is run from IDLE, it works perfectly fine. However, if the script is run outside of IDLE, importing the webbrowser module makes the…
-3
votes
2 answers

Undefined reference to GetConsoleWindow

I am trying to get a handle for the console window with the following: #include #include #include #define NTDDI_WIN7 as 0x06010000 #define _WIN32_WINNT as 0x0500 int main(int argc, char *argv[]) { HWND self =…
Linz
  • 9
  • 5
-3
votes
1 answer

Windows command line %argument was unexpected at this time (with single percentage!)

I'm trying to run the following command in a command prompt, with single percentage for the argument, as it should be for command prompt instructions: for /F %remote in ('git branch -a') do (git branch --track %remote) && git fetch --all && git pull…
Axonn
  • 10,076
  • 6
  • 31
  • 43
-3
votes
1 answer

How can I see the full 20x70 2d array that I just created? C++

New here. Okay so in my project I have a 20x70 2d array, but I can't see it all using the usual 2d array printing. By "see it all" I mean my console is too small. Is there any way of printing the full matrix and see it in the console? Or is there…
Eduard
  • 93
  • 9
-4
votes
1 answer

Hiding a console window for Keylogger in C++

Can anyone explain the following code, which was used to hide the console windows while doing Keylogger project in c++ void hide(); int main() { hide(); MSG Msg; //IO::MKDir(IO::GetOurPath(true)); //InstallHook(); while…
user8507713
-5
votes
2 answers

How to write ^C in the Windows console?

How to write ^C at in the Windows console? For example, I need to enter ^C in this window. If you press Ctrl+C in the console, the application exits and the console closes.
-7
votes
4 answers

C# Console Application Crashing

On Visual Studio, the C# Console application keeps on terminating when I try to run a program. I tested this by just writing Hello World, shown here: (screenshot of what I wrote) When I run it, the command prompt window appears for a second, then…
user7658600
  • 9
  • 1
  • 1
1 2 3
40
41