workerman icon indicating copy to clipboard operation
workerman copied to clipboard

windows version setProcessTitle

Open webrobot1 opened this issue 1 year ago • 2 comments

Hi

I think it will be better add static::setProcessTitle at method forkOneWorkerForWindows same as forkOneWorkerForLinux

webrobot1 avatar Nov 03 '22 23:11 webrobot1

In windows, static::setProcessTitle only set the command prompt window title which not we want.

walkor avatar Nov 04 '22 03:11 walkor

In windows, static::setProcessTitle only set the command prompt window title which not we want.

in windows you can find process by name like:

for /f "tokens=2 delims=," %F in ('tasklist /fo CSV /NH /FI "Windowtitle eq Workerman*"') do @echo %~F

But now no one place set process title in windows. and need set directly by cli_set_process_title

webrobot1 avatar Nov 04 '22 15:11 webrobot1