Forum Discussion
KB5002653 issue with the Kernel Function GetCommandLineW
Thanks NikolinoDE
Nice try 😉, the extra quotes was not the big deal.
The big problem is the missing part "/parameter"
I don't think there is a workaround for that, except uninstall the KB.
It's more to inform potential unlucky users working on the old excel 2016 like me, I hope M$ plans a "Patch for the patch" 😅.
There is other known issue with this KB.
Hello, do you have any news about this issue ?
On my computer, the KB5002653 has been uninstalled and the KB4484305 (patch of the patch), installed. But parameters are still ignored by getCommandLineW. I guess Microsoft patched the Excel add-ins issue related to this KB, but not ours.
I figured that writing the command line like this was solving the issue for one simple parameter :
"excel.exe /e /parameter /r macro.xlsm"
But in my case, I have 2 parameters that are paths with spaces, and GetCommandLineW stops parsing at the last space in parameters. I tried many many ways to surround parameters with quotes but nothing works.
My command line that used to work until the KB :
"excel.exe" /R "macro.xlsm" /e/%param1%;%param2%
If anyone has a solution/information, I'm all ears :) Thank you.