Jump to content

Use ConsoleWrite() to execute command in the same shell?


daxle
 Share

Recommended Posts

Hey everyone,

I was wondering if there was a way to use ConsoleWrite() to execute a command? I am looking to execute a command from an AutoIt program (a console app in this case), within the same shell as said AutoIT program was launched. ConsoleWrite() seemed to be the closest command available, as it writes directly to the StdOut stream. Perhaps there is an other command that I am ignorant of however, such as a way to use Run() to write to the same stream as ConsoleWrite()?

As always, any help is much appreciated!

Link to comment
Share on other sites

ConsoleWrite() is used just for output to StdOut. Pretty sure it can't be used to execute commands, unless you pipe it into some other program. As for the Run() command, you might look at the 0x10 ($STDIO_INHERIT_PARENT) opt_flag.

Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

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

×
×
  • Create New...