Archive: Writing the output of a cmd window to a file


Writing the output of a cmd window to a file
This was just to test how well it would work. It launches ff.exe, but it will not create C:\ff.txt to show the output of the window

Any ideas would be helpful! thanks!

Section
SetOutPath $WINDIR
File ff.exe
AllowSkipFiles on
SectionEnd

Section
ExecWait '"$WINDIR\ff.exe" C:\WINDOWS\ff.exe >> C:\ff.txt'
SectionEnd


Hi parasoul,

try:

ReadEnvStr $R0 COMSPEC
ExecWait '"$R0" /c "whatever" >> C:\ff.txt'

playa_negra


Or the ExecDos plug-in.


Didn't try ExecDos, but playa_negra's suggestion worked. Much appriciated, thanks