Alex Fadeyev
Администратор

Moderator
Всего сообщений: 1452
Дата регистрации: 30.09.2005
|
Создано:
27.05.2016 17:04:41
|
One more question: if you add the '/min' switch to the command (i.e. 'start "AWSManager" /min cmd.exe /C ...') - does the command prompt remain minimized or it stays open?
|
David Lomas
Всего сообщений: 377
Дата регистрации: 16.03.2006
|
Создано:
27.05.2016 18:00:23
|
If I add /min to the first example, the command prompt is minimised and the rule is still applied.
If I add it to the second example, it also stays minimised. However, without the /min option, I do notice something strange. It's very fast, but it really looks as if the first command prompt that opens closes and another is opened in its place. I wonder if this is because the npm.cmd script actually just called the node.exe executable? The final line of the npm.cmd script ends up looking like this:
"C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" start
and npm-cli.js has this line early on:
process.title = "npm"
So, that probably explains it. Grr. I guess there's nothing AWM can really do about that 
Do you still need the logs in the other question?
|
Alex Fadeyev
Администратор

Moderator
Всего сообщений: 1452
Дата регистрации: 30.09.2005
|
Создано:
27.05.2016 19:01:33
|
No, now the situation is clarified, thanks to your detailed response.
Did you try to comment/remove the 'process.title = "npm"' line? Probably, it's not necessary for correct working of node.exe, so removing this line may fix your problem.
|
David Lomas
Всего сообщений: 377
Дата регистрации: 16.03.2006
|
Создано:
27.05.2016 19:58:32
|
Yes, I can probably make that change locally, but I will also post on the nodejs project about _why_ it's there. Or maybe there's a way to check if the title has already been specifically set by the user and not change it then.
Many thanks.
|