Skip to main content
Jan Wustrau
Associate II
February 21, 2024
Question

STM32CudeIDE postbuild, path with spaces problem

Hello,

I'm trying to run some script as postbuild, but i'm stuck on path with spaces. I'm using Win10.

Here is one of examples that i tried. I tried also with batch files, directly cmd commands. Single and double quotes.

And it looks, like CubeIde omits quotes when launching command. In console i see command with quotes, but result e.g. from powershell indicates, that he received it without.

Is there any way to solve this?

 

powershell.exe -command Set-Location -literalPath 'D:\projects\path with spaces';./deploy.ps1

 

 

This topic has been closed for replies.

1 reply

Andrew Neil
Super User
February 21, 2024

Paths with spaces (and other "special" characters) will always cause problems - avoid them like the plague!

https://www.avrfreaks.net/s/topic/a5C3l000000UY8vEAG/t145039?comment=P-1182240

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.