Hello,
how to use MicroStationDeveloperShell.bat? I already read the readme file and watched the bentley youtube tutorial but i have no clue how to get it working. Maybe i missed something.
2. The second thing i tried was using the MicroStationDeveloperShell.bat directly with the following command: MicroStationDeveloperShell.bat "E:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\", "E:\Program Files\Bentley\MicroStationCONNECTSDK\"
The only result i get is a repeating error message: The command "E: \ Program" is either misspelled orcould not be found.
Any suggestions what i'm missing?
Thanks
Christian
Christian Jührendt said:The only result i get is a repeating error message: The command "E:\Program" is either misspelled orcould not be found
That's a Windows message. You passed something like E:\Program Files\folder name\etc to a Windows app. such as Dir. Windows interprets the first space as a delimiter. You have to wrap paths or file names that contain spaces in double-quotes...
E:\Program Files\folder name\etc
Dir
E:\>Dir "E:\Program Files\folder name\etc"
Regards, Jon Summers LA Solutions
Thank you for your reply. What i passed to the batch file is "E:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\" and "E:\Program Files\Bentley\MicroStationCONNECTSDK\" so its wrapped with double-quotes.
If i call the MicroStationDeveloperShell.bat without any parameters the error "The command "E:\Program" is either misspelled orcould not be found" is raised too.
Blanks are worse. For this reason, wie try to install MicroStation and the SDK into paths without blanks on computer for development.It save a lot of headache.Especially if you look at this:dir "c:\Program files\Microsoft\Some Program.exe" butstart c:\"Program files"\Microsoft\"Some Program.exe"
Mit freundlichen Grüßen / Best regards Volker Hüfner
| AB_DATE Engineering Software | ab-date.de |
Answer Verified By: Christian Jührendt
Thanks for you reply. The blank in the path is the problem, i reinstalled microstation and the sdk to a path without blanks. Wondering why the Bentley standard path contains blanks.
Thanks for your hint.
Christian Jührendt said:What i passed to the batch file is "E:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\"
One ugly way to avoid the problem is to use DOS-style mangled names. This article tells you more.
Volker Hüfner said:there exist some "mangle.bat" from Robert Hook thats really helpful
My article tells you how to create mangled path names manually and about mangle.bat.
mangle.bat
Christian Jührendt said:Wondering why the Bentley standard path contains blanks.
Because, as a Microsoft partner, they must conform to Windows standards. MicroStation itself is no problem; it's the SDK that remains sensitive to paths-with-spaces. Spaces have been permitted in Windows paths since Windows NT was introduced in 1993.
But a hint somewhere in the SDK readme would be really nice.