MATLAB was unable to launch my System web browser

Hi,
when I try to click on a help mathworks link, it doesn't open web browser and returns me the warning message:
Warning: MATLAB was unable to launch your System web browser
and...
'cmd.exe' is not recognized as an internal or external command
the same if I type:
!cmd or system('cmd')
Have I to set something in environment variables ?

7 comentarios

Do you have C:\Windows\system32 or other system paths in your PATH variable? Also, does the system setting match that returned by "getenv PATH" in MATLAB?
Marco
Marco el 28 de Dic. de 2012
Thanks. I setted (by setenv) C:\Windows\system32 in the PATH variable and now it works
shaik IMRAN
shaik IMRAN el 22 de Sept. de 2013
what you have setted its not working
This worked for me (Windows 7).
setenv('PATH', [getenv('PATH') ';C:\Windows\system32']);
Can confirm that
setenv('PATH', [getenv('PATH') ';C:\Windows\system32']);
worked on my Windows 10 MATLAB 2021a.
Luo Gang
Luo Gang el 24 de Abr. de 2022
Awesome, the command setenv('PATH', [getenv('PATH') ';C:\Windows\system32']); by typing it in the matlab command window has solved my problem. Thanks
Luo Gang
Luo Gang el 26 de Abr. de 2022
I find the way that cannot resolve this issue permanently. After you restarting your computer and then starting yout matlab, you will meet the issue again. So in order to solve this permanently, you can firstly run the command setenv('PATH', [getenv('PATH') ';C:\Windows\system32']); and secondly run the command getenv('PATH'), you will see a path. Finally go to edit your PC's the system environment variable, 'Path', by append above partial path to the end of 'PATH' in the Tab of system environment variable.

Iniciar sesión para comentar.

Respuestas (1)

Sebastian Hölz
Sebastian Hölz el 13 de Mzo. de 2013
Editada: Sebastian Hölz el 13 de Mzo. de 2013
I had the same problem and just found the cause: too many entries in the PATH environment variable. Win7 (and most likely older versions as well) limit this variable to 2048 characters. If the variable gets larger this will cause problems. Try the following:
>> getenv('path')
If this returns an empty string, your path variable might be to long. To fix this you will have to manually edit the path variable. To this, open the dialog to edit environment variables:
c:\windows\system32\systempropertiesadvanced.exe -> "Environment Variables"
Search for the "PATH" variable in the lower list (System variables), open it and make sure it has less than 2048 character.
This can be done by copying the value to an editor and
  • removing redundant directories in the string,
  • shorten directory path(s) by abbreviating them with variables.
After editing, copy the new path-variable to the "Edit System Variable" box. Then, after restarting Matlab, your problems are (hopefully) gone.
Cheers
Sebastian

1 comentario

karl hoitsma
karl hoitsma el 15 de Ag. de 2021
Unfortunately, this happens on a mobile device -- an iPhone.
What might be the fix here ??

Iniciar sesión para comentar.

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 27 de Dic. de 2012

Comentada:

el 26 de Abr. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by