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.
- GregMDec 02, 2024Copper Contributor
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.
- NikolinoDENov 18, 2024Platinum Contributor
Thank you for clarifying the nature of the main problem: the missing command line arguments, such as /parameter, and not just the handling of quotes. The problem seems to be deeper and probably rooted in how Windows or Excel interpret command line input after KB5002653.
A patch provided by Microsoft to fix or reverse this behavior would be the optimal solution. Until then, unfortunately, I have not offered any other solution suggestion or workaround.
Unfortunately, as you noted, the only effective solution so far may be to uninstall KB5002653 if possible, especially if you are using an older version of Excel (such as Excel 2016). This is not ideal for long-term stability or security, so it should be approached with caution.
Hope that maybe someone here in the forum knows another workaround or solution and can help you out.
I wish you all the best in your endeavors.
- LionelGNov 19, 2024Copper Contributor
Thanks for your time, have a nice day.