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 Reply Children
  • Take care, the script from will not work on a German Windows ;-)
    Just try: fsutil 8dot3name query c: with every Drive Letter you use, You will get some German notation like:

    fsutil 8dot3name query c:
    Der Volumestatus ist 0 (8dot3-Namenerstellung ist aktiviert).
    Der Registrierungsstatus ist "2" (Standardeinstellung "Pro Volume").
    
    Aufgrund der oben angegebenen Einstellungen ist die Erstellung von 8dot3-Namen auf "c:" aktiviert.
    

    Mit freundlichen Grüßen / Best regards
    Volker Hüfner

    |  AB_DATE Engineering  Software   |  ab-date.de  |

  • Hi ,

    Thank you for your feedback. The original snip/test above as you can imagine was a quick pass/test.  With your feedback I have updated it above hopefully to be slightly more useful/effective.  If you like to test and let me know if the modified version works on your localized OS, I would appreciate the feedback too.

    for %a in ("%SDK%" "%MS%" C: D: E:) do @fsutil 8dot3name query %~da >nul && echo Location: %a (8dot3name: ENABLED) || echo Location: %a (8dot3name: N/A)

    Thank you again,
    Bob



  • Hi

    I guess there is still a little bug. 

    for %a in ("%SDK%" "%MS%" C: D: E:) do @fsutil 8dot3name query %~da >nul && echo Location: %a (8dot3name: ENABLED) || echo Location: %a (8dot3name: N/A)
    Location: "%SDK%" (8dot3name: ENABLED)
    Location: "%MS%" (8dot3name: ENABLED)
    Location: C: (8dot3name: ENABLED)
    Location: D: (8dot3name: ENABLED)
    Location: E: (8dot3name: N/A)
    seems good on the first view, But drive 'D:' says 'deaktiviert'  == 'disababled'.

    C:\tmp>for %a in ("%SDK%" "%MS%" C: D: E:) do @echo %~da %a & @fsutil 8dot3name query %~da
    C: "%SDK%"
    Der Volumestatus ist 0 (8dot3-Namenerstellung ist aktiviert).
    Der Registrierungsstatus ist "2" (Standardeinstellung "Pro Volume").
    
    Aufgrund der oben angegebenen Einstellungen ist die Erstellung von 8dot3-Namen auf "C:" aktiviert.
    C: "%MS%"
    Der Volumestatus ist 0 (8dot3-Namenerstellung ist aktiviert).
    Der Registrierungsstatus ist "2" (Standardeinstellung "Pro Volume").
    
    Aufgrund der oben angegebenen Einstellungen ist die Erstellung von 8dot3-Namen auf "C:" aktiviert.
    C: C:
    Der Volumestatus ist 0 (8dot3-Namenerstellung ist aktiviert).
    Der Registrierungsstatus ist "2" (Standardeinstellung "Pro Volume").
    
    Aufgrund der oben angegebenen Einstellungen ist die Erstellung von 8dot3-Namen auf "C:" aktiviert.
    D: D:
    Der Volumestatus ist "1" (Erstellung von 8dot3-Namen ist deaktiviert).
    Der Registrierungsstatus ist "2" (Standardeinstellung "Pro Volume").
    
    Aufgrund der oben angegebenen Einstellungen ist die Erstellung von 8dot3-Namen auf "D:" deaktiviert.
    E: E:
    Fehler:  Das System kann die angegebene Datei nicht finden.

    I guess fsutil sets errorlevel only if the drive does not exist.

    Mit freundlichen Grüßen / Best regards
    Volker Hüfner

    |  AB_DATE Engineering  Software   |  ab-date.de  |

  • Hi ,

    Thank you for that additional feedback. I will (in a bit) update w/a better test based on your feedback.

    Thank you again and have a great weekend!
    Bob