Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   remove command line parameters (http://forums.winamp.com/showthread.php?t=316998)

mustafah 13th February 2010 12:18

remove command line parameters
 
Hi,

Is it possible to remove specific command line arguments from within nsi script which are passed into the executable.

I am currently retrieving paramters specified to the executable using GetParameters. These parameters are then passed into a Java class which the nsi script executes.

However, I want to pass in additional parameters into the executable which can be read from the nsi script, but then removed before they are passed into the Java application

Thanks

MSG 13th February 2010 14:49

GetOptions is probably the macro you need. It's in FileFunc.nsh.

Or just use StrCmp and StrCpy a couple of times. There's a 'findsubstring' macro or something as well, in textfunc.nsh I think.

mustafah 13th February 2010 15:40

Thanks MSG very much appreciated. I will give it a go.


All times are GMT. The time now is 04:27.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.