Jump to content

Get the output of a cmd command


 Share

Recommended Posts

  • Developers

Thanks, but isn't it possible to read the information in a var. directly?

<{POST_SNAPBACK}>

yes, but currently only with the 3.1.0++ version posted by JPM, as mentioned by dok_do ...

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

I tried but was unsuccesfull at getting it to read from the cmd and send it back out to another app that was supposed to be reading from stdin. Could somebody give a working example jsut in case i messed it up somehow.

I need it to read the running cmd window and echo it back out to another app that it trying to read that info. I hope that makes since.

The latest barts pe does not allow at all for redirecting to another app to do after build but before creating the cd clean up and stuff. So I created a wrapper that calls my cleaning scripts. But I would still like to redirect output back to barts pe for it to parse.

Link to comment
Share on other sites

This commandline program here, sends the output to clipboard.

cb is a simple command-line program to send input to the clipboard. It comes most useful when trying to capture the output from another program.

For example:

if you execute `dir /b /on | cb' the contents of the current directory will be copied to the clipboard

Note: The format to send the ouput of one program to another program is:

`prog1 | prog2'.

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...