Tagor Posted March 26, 2005 Share Posted March 26, 2005 Is there a way to get the output of a CMD command? For example the output of "date". Link to comment Share on other sites More sharing options...
dok_do Posted March 26, 2005 Share Posted March 26, 2005 you can see betaversion http://www.autoitscript.com/forum/index.php?showtopic=9202FUNCTION: stdinwrite,stdoutread Link to comment Share on other sites More sharing options...
Alterego Posted March 27, 2005 Share Posted March 27, 2005 type Date>C:\date.txt This dynamic web page is powered by AutoIt 3. Link to comment Share on other sites More sharing options...
buzz44 Posted March 27, 2005 Share Posted March 27, 2005 type COMMAND > where you want the file ... eg "c:\test.txt" without the quotation marks qq Link to comment Share on other sites More sharing options...
Tagor Posted March 27, 2005 Author Share Posted March 27, 2005 Thanks, but isn't it possible to read the information in a var. directly? Link to comment Share on other sites More sharing options...
Developers Jos Posted March 27, 2005 Developers Share Posted March 27, 2005 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 More sharing options...
steveR Posted March 27, 2005 Share Posted March 27, 2005 Yes, with the beta. I've been using it quite a lot. Don't know whether you can do it with batch or not. AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass. Link to comment Share on other sites More sharing options...
webmedic Posted March 27, 2005 Share Posted March 27, 2005 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 More sharing options...
MHz Posted March 28, 2005 Share Posted March 28, 2005 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 More sharing options...
webmedic Posted March 28, 2005 Share Posted March 28, 2005 thank you for that but I dont think the other app reads from the clipboard. All that is needed here is a simple pipe that pipes all the stuff from stdin to stdout. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now