Initial working folder resets to C:\Windows\System32

조회 수: 11 (최근 30일)
Kaarle Kupiainen
Kaarle Kupiainen 2019년 2월 21일
댓글: Zian Zian 2023년 3월 3일
MATLAB 2018b always starts with the working folder C:\Windows\System32. I've changed the preferences so that the initial working folder should be the last working folder. I've also cleared the "Start in" path from the MATLAB shortcut. I've checked the matlab.settings-file, and it seems that the "LastFolderPath" always resets to C:\Windows\System32 on the startup. When installing 2018b I copied my old preferences from 2016b version. I suspect this might have caused the problem.

답변 (3개)

Chi Zhang
Chi Zhang 2020년 4월 21일
I have the same problem as yours. You may edit startup.m to fix it.
You can create an startup file as following
edit(fullfile(userpath,'startup.m'))
and type cd command in the startup file to change the folder as you want.
cd 'the current folder path you want to set';
  댓글 수: 1
Andrew Black
Andrew Black 2021년 3월 18일
This finally worked for me for 2020a for Windows. I was going crazy! Thank you!

댓글을 달려면 로그인하십시오.


Alhun Aydin
Alhun Aydin 2019년 4월 2일
I had the same problem in 2019a and although I searched the internet and tried every "solution" that I encountered, it does not change. It's funny that everybody else is fine with this weird thing.
Only solution that I found is a workaround. You can create the shortcut of the matlab.exe and then right-click, properties, write the path you wanted into "start in" field. If you use that shortcut to enter MATLAB, it should work.

Abul Hossain
Abul Hossain 2019년 7월 2일
To fix it, right click your Matlab icon, select properties >>shortcut, in "start in", delete the default folder then check for your preference setting
  댓글 수: 2
Preetham Manjunatha
Preetham Manjunatha 2020년 2월 28일
This is not working in MATLAB R2019b! If you right click your Matlab icon, select properties >>shortcut, in "start in", delete the default folder. it takes to "C:\Windows\System32".
Zian Zian
Zian Zian 2023년 3월 3일
Thanks bro, this worked for my R2023a prerelase.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by