Old 28th September 2007, 03:47   #1
parasoul
Senior Member
 
Join Date: Aug 2007
Posts: 117
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
parasoul is offline   Reply With Quote
Old 28th September 2007, 06:41   #2
playa_negra
Junior Member
 
Join Date: Sep 2007
Location: Germany
Posts: 3
Hi parasoul,

try:

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

playa_negra
playa_negra is offline   Reply With Quote
Old 28th September 2007, 08:59   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Or the ExecDos plug-in.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 28th September 2007, 16:59   #4
parasoul
Senior Member
 
Join Date: Aug 2007
Posts: 117
Didn't try ExecDos, but playa_negra's suggestion worked. Much appriciated, thanks
parasoul is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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