Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 19th March 2009, 09:21   #1
congahonga
Junior Member
 
Join Date: Dec 2008
Posts: 39
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 :-))
congahonga is offline   Reply With Quote
Old 19th March 2009, 12:29   #2
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
-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.
Animaether is offline   Reply With Quote
Old 19th March 2009, 12:48   #3
congahonga
Junior Member
 
Join Date: Dec 2008
Posts: 39
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 !
congahonga is offline   Reply With Quote
Old 19th March 2009, 13:37   #4
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
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.
Animaether is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump