How to use MicroStationDeveloperShell.bat in MicroStation CONNECT Edition 12 SDK?

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.

  1.  The first thing i tried was running the "MicroStation CONNECT Edition SDK" shortcut from the windows start menu as administrator. After some seconds the cmd windows completed with scanning the drives of the pc. As mentioned in the tutorial video i tried to start visual studio with the devenv command. But no luck only the following error message: The command "devenv" is either misspelled or
    could not be found.

   

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 or
could not be found.

Any suggestions what i'm missing?

Thanks 

Christian

Parents
  • Hi Cristian,

    how to use MicroStationDeveloperShell.bat?

    How to start the batch file and what parameters should be used is documented in the batch itself. Did you read its content?

    I recommend to create a link (shortcut) to the batch file and configure (modify) its target properly, so correct parameters will be passed to the batch file.

    Mine is:

    C:\Windows\System32\cmd.exe /x /k ""C:\Program Files\Bentley\MicroStationCONNECTSDK\MicroStationDeveloperShell.bat" "C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\" "C:\Program Files\Bentley\MicroStationCONNECTSDK\""

    Of course your setting and parameters have to recflect your installation (e.g. that you have SDK installed at E drive).

    The first thing i tried was running the "MicroStation CONNECT Edition SDK" shortcut from the windows start menu as administrator.

    Which is expected it does not work because in such case you do not pass any information about your environment using the batch parameters.

    The second thing i tried

    Which also cannot work, because you have to start Windows shell and instruct it to start the batch and to pass the arguments to the batch.

    With regards,

      Jan

Reply
  • Hi Cristian,

    how to use MicroStationDeveloperShell.bat?

    How to start the batch file and what parameters should be used is documented in the batch itself. Did you read its content?

    I recommend to create a link (shortcut) to the batch file and configure (modify) its target properly, so correct parameters will be passed to the batch file.

    Mine is:

    C:\Windows\System32\cmd.exe /x /k ""C:\Program Files\Bentley\MicroStationCONNECTSDK\MicroStationDeveloperShell.bat" "C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\" "C:\Program Files\Bentley\MicroStationCONNECTSDK\""

    Of course your setting and parameters have to recflect your installation (e.g. that you have SDK installed at E drive).

    The first thing i tried was running the "MicroStation CONNECT Edition SDK" shortcut from the windows start menu as administrator.

    Which is expected it does not work because in such case you do not pass any information about your environment using the batch parameters.

    The second thing i tried

    Which also cannot work, because you have to start Windows shell and instruct it to start the batch and to pass the arguments to the batch.

    With regards,

      Jan

Children