Jump to content

Simple stdout to command line?


Max Kipness
 Share

Recommended Posts

Been looking through some old posts, and it seems that what I'm trying to do is impossible. I just find it so hard to believe that something so simple cannot be done with such a great tool.

Basically I want to run the following command (I'd like to print much more to stdout, but for simplicity I'll use one command):

@osversion & @LF

I would like to compile it as osversion.exe. Then I would like to open a command prompt and type:

osversion.exe

and get the response followed by a line feed (and in the same command prompt window):

WIN_XP

At first when glancing over the docs it seemed like consolewrite would do the trick, but obviously it won't.

I saw posts about different crazy hacks to accomplish this, but I'm not interested in that route.

Am I missing something? Is this not a useful function? Will it be added at any time in the future?

Thanks,

Max

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...