Menu
  • HOME
  • TAGS

What is the difference between win32 console and command prompt?

cmd,windows-console

Your computer has many console mode programs. It has only one Cmd.exe. Which is the command interpreter, it displays a prompt and let you type commands to start other programs. You ought to play with Dumpbin.exe, included with Visual Studio. Use its /headers option to look at the header of...

How to checkout project from head using CVS command using windows command prompt

cvs,checkout,windows-console

Finally I am able to resolve the issue, As I suspected the issue was due to CVS Client which I had used. Please do not use below CVS client as stated in my question http://ftp.gnu.org/non-gnu/cvs/binary/stable/x86-woe/cvs-1-11-22.zip Instead download cvs client from below site http://www.cvsnt.org Install CVS Client using above link, Say...

Tcl and Ctrl-C in Windows console

windows,tcl,interrupt,windows-console

The MSDN documentation for SetConsoleCtrlHandler points out that CTRL_C handling is handled separately but this can be disabled by setting the console mode to ENABLE_PROCESSED_INPUT. This then reports Ctrl-C events as keyboard input. The following critcl code loaded into an interpreter (using load ctrl_c.dll ctrl_c; win32::SetCtrlHandler lets me intercept the...

.bat file stuck at opening notepad document, not cancellable

batch-file,windows-console

If I see this correctly, you just need to use start with notepad also. It starts programs in another process so the script can continue. @echo off start notepad "C:\Users\username\somefile.txt" start chrome "https://domain.com/%DATE%?some=parameters" ...

Custom “invalid input” error message in Text-Based Game

c++,windows-console,text-based

Clear console text (it's OS-specific, read here: How can I clear console), and simply rewrite what you had written before with your error message on top!

How to add console window in Win32 Project, Visual Studio 2010

c++,visual-studio-2010,winapi,windows-console

As mentioned in this blog post (which I found by typing "add console to win32 project" into Google), you can accomplish this with the following code: #include <stdio.h> #include <io.h> #include <fcntl.h> int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { AllocConsole(); HANDLE handle_out = GetStdHandle(STD_OUTPUT_HANDLE); int hCrt...

How to stop executing a MPI program in windows command prompt after infinite loop

command-prompt,message-passing,windows-console,mpich

Most console programs respond to Ctrl+C to terminate operation. If that doesn't work, you can always kill mpirun.exe from task manager (Ctrl+Shift+Esc)

How to hide console cursor in c?

c,cursor,windows-console

Add to your program the following function #include <windows.h> void hidecursor() { HANDLE consoleHandle = GetStdHandle(STD_OUTPUT_HANDLE); CONSOLE_CURSOR_INFO info; info.dwSize = 100; info.bVisible = FALSE; SetConsoleCursorInfo(consoleHandle, &info); } and call it in your main. And read more in the MSDN...

Rename Files Older Than 1 day

batch-file,windows-console

You would use "forfiles". The code would be: forfiles /m "*.txt" /c "cmd /c Ren @fname.txt *.csv" /d -01 That will rename all .txt files to .csv files. Edit Ren *.txt was changed to @fname.txt...

Running a console application from the command prompt without it launching a new console window

c#,.net,windows,windows-console

A console application, when run from an existing command-line, will not create a new console window: Windows will re-use the existing window. PE executables (i.e. .exe files) are marked with a flag which tells the OS if it's a console application or not: if it is marked as a console...

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

batch-file,command-line,windows-console

If you can use vbscript, you can try the following: Create the file vbdate.vbs: function YMD(d) YMD = Year(d) & _ "-" & Right("00" & Month(d),2) & _ "-" & Right("00" & Day(d),2) end function set oArgs=WScript.Arguments ' Assuming first day of the week is Monday: WScript.echo YMD(DateAdd("d", -((Weekday(Now()) +...

Redirect stdout to parent process console window

c++,c,winapi,stdout,windows-console

A process can only write directly to the console it is attached to. If a child process is created with its own console, or allocates its own console once started, it can't subsequently write to the parent's console. If the parent process creates an anonymous pipe it can use the...

Find recently modified files on windows console

cmd,find,windows-console

You can use the /C parameter: /C command Indicates the command to execute for each file. Command strings should be wrapped in double quotes. The default command is "cmd /c echo @file". The following variables can be used in the command string: @file - returns the name of the file....

How to return the exception stack trace to normal, when using win32console gem?

ruby,gem,windows-console

Found out this issue has been logged before and I guess never added to the actual gem see here since the posts are four years old. Basically change a line s = t.dup.to_s to s = t.to_s.dup in lib\Win32\Console\ANSI.rb in the def _PrintString(t) method....

“Console Application Window” on Windows CE Platform

console-application,windows-ce,windows-console

It is expected behavior in WinCE. If there is no input/output needed, console will not appear. That means, the application will run silently on double click. If you need console window to appear, you have to use printf/scanf/getchar etc....