Problem while running setup of Raspberry Pi Support Package

7 ビュー (過去 30 日間)
Aviv Haklai
Aviv Haklai 2020 年 10 月 8 日
コメント済み: Dennis 2025 年 1 月 30 日
Hi Matlabers,
I am trying to install the Rapbian imager for matlab, and while configuring my hardware in the process, i get the following error:
"cannot retrieve removable drives: 'wmic' is not recognized as an internal or external command, operable program or batch file"
I saw a question like this here before but the solution there wasn't good for me.
I added the following to my Path
%SystemRoot%\System32\Wbem
but no good.
Please help!
  2 件のコメント
Prasanth Sunkara
Prasanth Sunkara 2020 年 10 月 12 日
Hi Aviv, Can you please check if you are able to execute "wmic" command on windows terminal without errors? If it does, MATLAB should also be able to execute the command.
I would also encourage you to post this question on any windows forums along with a screenshot of the environment variables of your system, especially focussing on how and where you have added wmic to path.
Thanks,
Prasanth
Dennis
Dennis 2025 年 1 月 30 日
If ‘wmic’ is not installed on your system due to it being deprecated on newer Windows versions it can be added. The WMIC (Windows Management Instrumentation Command-line) utility was a powerful command-line tool for interacting with the Windows Management Instrumentation (WMI) service. WMI is a framework in Windows for managing data and operations across various parts of the operating system. WMIC provided a command-line interface to query and manipulate WMI data, allowing users and administrators to perform a wide range of system management tasks.
You can add ‘wmic’ to your system via the method below:
WMIC is still available as an optional feature. In the Settings app, go to System → Optional features and click "View features" in the "Add an optional feature" row. Check the box for WMIC and proceed through the installation.

サインインしてコメントする。

回答 (2 件)

polsky edd
polsky edd 2022 年 9 月 29 日
The error states that the WMIC is not recognized as an internal or external command. Windows displays this error message when it does not find the WMIC in the system path. To solve this problem, you have to define a System Variable by adding the path of the WMIC executable file.
Open the advanced System Properties window (you can open the System page with Windows+Pause/Break) and on the Advanced tab, click Environment Variables. In the section for system variables, find PATH (or any capitalization thereof). Add this entry to it:
%SystemRoot%\System32\Wbem
Note that entries are delimited by semicolons.
http://net-informations.com/q/mis/wmic.html

Dennis
Dennis 2025 年 1 月 30 日
If ‘wmic’ is not installed on your system due to it being deprecated on newer Windows versions it can be added. The WMIC (Windows Management Instrumentation Command-line) utility was a powerful command-line tool for interacting with the Windows Management Instrumentation (WMI) service. WMI is a framework in Windows for managing data and operations across various parts of the operating system. WMIC provided a command-line interface to query and manipulate WMI data, allowing users and administrators to perform a wide range of system management tasks.
You can add ‘wmic’ to your system via the method below:
WMIC is still available as an optional feature. In the Settings app, go to System → Optional features and click "View features" in the "Add an optional feature" row. Check the box for WMIC and proceed through the installation.

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by