Archive: How can i set a break with ExecWait to see the output


How can i set a break with ExecWait to see the output
Hello,

How can I set a break when Executing DOS commands with ExecWait to SEE the output

ExecWait "cscript adsutil.vbs set W§SVC/AppPools/Enable32BitAppOnWin64 true"

I want to see the output. Error or not ?

I tried "pause | cscript adsutil ...."

but this doesn't work...

Someone an idea ?

Greeting from Jochen Graulberger from BLACK-FORREST (where the night is darker than black :-))


-if- you get a window at all, it would be "command parameters | pause" or better yet "command parameters | more" (1 page displayed at a time)

alternatively, check the plugins list in the wiki - there's a few similar commands that can redirect output to a file/buffer so you can parse it yourself.


Did you read my post ?
Did you read my post ?

I wrote that "pause | <command>" doesn't work !

(works "<command> | pause" doesn't work too).


but I found out, how it works !


ExecWait "cmd /c pause | <command>"


With this trick I finally get what I want.

An easy way to see the output from Dos-Commands and and easy way to switch off this later on, if it works. Omit

(cmd /c means, that a shell opens and that it should execute following command and then close window. you need this cmd /c otherwise ExecWait doesn't understand the piped command "pause | command"....Yeah...that's it !)

See wikipedia for other nice Options for cmd !
There is even a "silent mode" without output !


yes I did.. you mentioned you tried "pause | command".. that doesn't mean you tried "command | pause" as well :P
Either way - glad you got it resolved.