viewpoint-particle

Author Topic: Output information to CMD window  (Read 355 times)

erezpaz

  • Jr. Member
  • **
  • Posts: 62
Output information to CMD window
« on: April 06, 2018, 05:46:41 am »
Hi

I want to create an exe that if run from CMD it will output data to the CMD window it run from. How can i do that?

Thanks
Eez

td

  • Tech Support
  • *****
  • Posts: 2595
    • WinBatch
Re: Output information to CMD window
« Reply #1 on: April 06, 2018, 07:49:12 am »
You go to the Tech Database and search for a few terms like "cmd" or "console" - just to name a few.  You find that there are examples of several different approaches to writing to command shell windows.   Here is but one example:

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/How~To+Displaying~Text~Messages~on~the~Console.txt 
"Success is a lousy teacher. It seduces smart people into thinking they can't lose."
  - Bill Gates


erezpaz

  • Jr. Member
  • **
  • Posts: 62
Re: Output information to CMD window
« Reply #2 on: April 08, 2018, 01:39:02 am »
Hi

Tried it but got the attached error.
Also searched the tech data base and didn't find any other way to do it. Can you point me please to deterrent approach?

Thanks
Erez

td

  • Tech Support
  • *****
  • Posts: 2595
    • WinBatch
Re: Output information to CMD window
« Reply #3 on: April 08, 2018, 09:08:49 am »
The example has a line break on the line causing your error.  You need to remove the line break to rejoin the bit that wraps around to the next line.

If the future you might want to consider taking the time to at least understand a little bit about what you're pasting before committing an act of cut&paste programming.
"Success is a lousy teacher. It seduces smart people into thinking they can't lose."
  - Bill Gates