Community Discussions and Support
How to pass command line option parameter?

Hi

 I did some more research and testing and found this does the trick:-

 C:\Windows\System32\cmd.exe /C START "Pegasus Mail Priority" /high /affinity 1  "C:\newpegasus\winpm-32.exe" "-ID" "Fred""

Thanks for your input [:)]

<p>Hi</p><p> I did some more research and testing and found this does the trick:-</p><p> C:\Windows\System32\cmd.exe /C START "Pegasus Mail Priority" /high /affinity 1  "C:\newpegasus\winpm-32.exe" "-ID" "Fred""</p><p>Thanks for your input [:)] </p>

I am using Pegasus Mail 4.63 build 325, running on Windows 7 Professional, and am trying to make Pegasus Mail load with a High Priority and the affinity set to run on one core of my dual core processor. This can be set manually, but it has to set each time. Alternatively, it is possible to get Pegasus to load with these settings from the desktop icon by prefixing the Target code.

The old way I have been loading Pegasus has been using this target string:-

 C:\newpegasus\winpm-32.exe -ID Fred

 

 Here is an example with the priority set high and the affinity set to one core that works fine, without any optional command line instructions:-

 C:\Windows\System32\cmd.exe /C START "Pegasus Mail Priority" /high /affinity 1 "C:\newpegasus\winpm-32.exe"

 

However, the following code with the command line option included produces an error message:--

 C:\Windows\System32\cmd.exe /C START "Pegasus Mail Priority" /high /affinity 1 "C:\newpegasus\winpm-32.exe -ID Fred"

 This is the message - "Windows cannot find 'C:\newpegasus\winpm-32.exe -ID Fred'. Make sure you typed the name correctly, and then try again"

 Placing the string " -ID Fred" outside of the quotes does not work either...

 Any  ideas as how to pass the parameters, please?

 

Thanks

 

<p>I am using Pegasus Mail 4.63 build 325, running on Windows 7 Professional, and am trying to make Pegasus Mail load with a High Priority and the affinity set to run on one core of my dual core processor. This can be set manually, but it has to set each time. Alternatively, it is possible to get Pegasus to load with these settings from the desktop icon by prefixing the Target code.</p><p>The old way I have been loading Pegasus has been using this target string:- </p><p> C:\newpegasus\winpm-32.exe -ID Fred </p><p> </p><p> Here is an example with the priority set high and the affinity set to one core that works fine, without any optional command line instructions:-</p><p> C:\Windows\System32\cmd.exe /C START "Pegasus Mail Priority" /high /affinity 1 "C:\newpegasus\winpm-32.exe"</p><p> </p><p>However, the following code with the command line option included produces an error message:-- </p><p> C:\Windows\System32\cmd.exe /C START "Pegasus Mail Priority" /high /affinity 1 "C:\newpegasus\winpm-32.exe -ID Fred"</p><p> This is the message - "Windows cannot find 'C:\newpegasus\winpm-32.exe -ID Fred'. Make sure you typed the name correctly, and then try again" </p><p> Placing the string " -ID Fred" outside of the quotes does not work either...</p><p> Any  ideas as how to pass the parameters, please?</p><p> </p><p>Thanks </p><p> </p>

I used to use this RunFirst for an old app that required being run on a single core.  I don't remember whether command line switches were involved when I used it but it might be worth a test.  It's at http://www.activeplus.com/Products/RunFirst.  It's one of their free tools so the price is right.

I used to use this RunFirst for an old app that required being run on a single core.  I don't remember whether command line switches were involved when I used it but it might be worth a test.  It's at http://www.activeplus.com/Products/RunFirst.  It's one of their free tools so the price is right.

>I used to use this RunFirst for an old app that required being run on a

single core.  I don't remember whether command line switches were

involved when I used it but it might be worth a test.  It's at

http://www.activeplus.com/Products/RunFirst.  It's one of their free

tools so the price is right.<

Thanks for the suggestion - I'll have a look at this, but I'm not sure if you can alter the priority setting as well. I'd still like to crack why the parameter isn't being recognised....

 

&lt;p&gt;&amp;gt;I used to use this RunFirst for an old app that required being run on a single core.&amp;nbsp; I don&#039;t remember whether command line switches were involved when I used it but it might be worth a test.&amp;nbsp; It&#039;s at http://www.activeplus.com/Products/RunFirst.&amp;nbsp; It&#039;s one of their free tools so the price is right.&amp;lt;&lt;/p&gt;&lt;p&gt;Thanks for the suggestion - I&#039;ll have a look at this, but I&#039;m not sure if you can alter the priority setting as well. I&#039;d still like to crack why the parameter isn&#039;t being recognised.... &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

>I used to use this RunFirst for an old app that required being run on a

single core.  I don't remember whether command line switches were

involved when I used it but it might be worth a test.  It's at

http://www.activeplus.com/Products/RunFirst.  It's one of their free

tools so the price is right.<

Thanks for the suggestion - I'll

have a look at this, but I'm not sure if you can alter the priority

setting as well. I'd still like to crack why the parameter isn't being

recognised....

&lt;p&gt;&amp;gt;I used to use this RunFirst for an old app that required being run on a single core.&amp;nbsp; I don&#039;t remember whether command line switches were involved when I used it but it might be worth a test.&amp;nbsp; It&#039;s at http://www.activeplus.com/Products/RunFirst.&amp;nbsp; It&#039;s one of their free tools so the price is right.&amp;lt;&lt;/p&gt;Thanks for the suggestion - I&#039;ll have a look at this, but I&#039;m not sure if you can alter the priority setting as well. I&#039;d still like to crack why the parameter isn&#039;t being recognised....
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft