Old 10th August 2010, 14:30   #1
jammusi
Member
 
Join Date: Dec 2009
Posts: 78
executing 'Start' command line

Hi,

I am trying to execute console application using Windows command line 'Start'.
Start execute the specified command within a new Console see: http://ss64.com/nt/start.html

This is the command i want to run
code:
Start "" /min /b "E:\PROGRA~1\Covertix\Cx-Sense\CX-SEN~1\cx-sense.exe" -app cxuser_framework



Putting this command within a batch file and execute the batch file from NSIS using Exec - works beautifully

But - when using Exec and then the command (rather than the batch file) - do nothing.

Actually - even just
code:
Exec 'Start'

do nothing

Help?

Tx

Oren
jammusi is offline   Reply With Quote
Old 10th August 2010, 15:39   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
start is not an executable. It is built into cmd.exe therefore you cannot expect to run it without cmd.exe /c.

ReadEnvStr $R0 COMSPEC
nsExec::Exec `"$R0" /c start ...`

Stu
Afrow UK is offline   Reply With Quote
Old 10th August 2010, 16:11   #3
jammusi
Member
 
Join Date: Dec 2009
Posts: 78
yep - thanks

jammusi 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