Directory Path Bug?

ac9ts

Active Member
Licensed User
Longtime User
I just installed v2.0 and am seeing an issue I don't remember seeing in previous versions. If there is a space in the directory of a project, a "the directory name is invalid" error is displayed. If the same project directory name has the space removed, the project loads and compiles fine.

I keep all the example code I download from the forum in directories under F:\Android\b4aCode\Example Code

This path now causes the above error. If I change it to F:\Android\b4aCode\ExampleCode, the project loads and compiles.

I will need to dig out an older version of B4A to verify but I'm pretty sure I would have noticed this since I load the examples often.

:sign0163:
 

JonPM

Well-Known Member
Licensed User
Longtime User
I noticed this in 1.92. Never really heard of a solution though...
 

Roger Garstang

Well-Known Member
Licensed User
Longtime User
I wouldn't use DOS Format. DOS May not exist and in most cases doesn't exist on current OS. There is a registry setting to not store DOS Format names in NTFS too. I would imagine in new OS this may even be a default option since DOS names are pretty useless. Will quoting not solve the java issues?

Some OS also have issues with commandline lengths, so I'd imagine really long names give issues too. I can't remember the exact details (I think a thread over at the PowerBASIC forums discussed it once), but where you use %1 in a commandline will also sometimes convert to a DOS Format name and/or have character limits...I believe there was an "undocumented"/Microsoft Documented(Hidden) %L or something that made the commandline contain the long format name.

On a side/personal note- Spaces and long names tick me off. They cause all kinds of issues on a network, website, or CD/DVD Backups. If your names are longer than 32 chars or require spaces you are just going to have issues. MS Word really drives me nuts how it always wants to name your files as your first sentence/paragraph. I usually keep to a titlecase method just making the start of each word uppercase and removing the spaces. The only thing I even allow spaces on are MP3/M4A files just because the options and pulling from CDDB make it too hard to keep 5000+(25GB worth) of MP3 filenames space free.
 
Top