Jump to content

Interactive Command prompt behavior - (Moved)


Recommended Posts

Hi All,

we are trying to automate the gcloud auth login behavior where we have to open command prompt and execute"gcloud auth login" which will give URL and waits for verification code input.

I want to read the URL from my window 


Link to comment
Share on other sites

post got submitted by mistake before i complete..

below is the code which i am trying and also tried adding $STDERR_CHILD + $STDOUT_CHILD but then it is giving error. i think because the command is still waiting for user input.

$logincmdToExecute = "gcloud auth login --no-launch-browser"
$iPID = Run(@ComSpec & " /c " & $logincmdToExecute, @WindowsDir, @SW_SHOW)

ConsoleWrite(StdoutRead ( $iPID ))


can someone provide any pointers on how can we execute command in DOS and read response without errors or closing window

Link to comment
Share on other sites

  • Moderators

Moved to the appropriate forum, as the Developer General Discussion forum very clearly states:


General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here.

Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

Moderation Team

Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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

  • Recently Browsing   0 members

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