create_project.bat issue

Hi,

Not sure if this is the right board to post in, but here goes. Embarrassingly I’ve fallen at the first hurdle with plugin development here, as I’m not a Windows user. Hoping somebody can give me a quick nudge as to where I’m going wrong please?

Following https://docs.coronalabs.com/native/plugin/luaplugin.html , I’m trying to run the create_project.bat command from a Windows box that we use for Corona development, but the path I need to specify contains spaces. On Unix we use backslashes to escape things like this but the backslash on Windows appears to be the separator, so that’s obviously not going to work. Windows is instead wrapping the whole path in quotes, which makes sense, but create_project.bat then errors out.

E.g. the following:

create_project.bat “\path\to\some project space” projectname

Returns:

“project was unexpected at this time”

Presumably because it thinks I’m trying to tell it “project” is my project name, when in fact it’s just a part of the folder name.

Is there a simple solution please? The real path is actually a Dropbox folder so just taking out the spaces isn’t really feasible unfortunately, as it’ll cause very very very time consuming synchronisation across all devices.

Regards.

Turns out ^ is the escape character on Windows, but this didn’t work properly either.

I even amended the .bat file to use hard coded dst and name values instead of reading from the command parameters, but this resulted in “already exists” errors weirdly.

I eventually ended up running the script to create a project folder on the desktop, then moved it to the proper Dropbox location after. I’d still appreciate some advice as to how to do this properly though.