Changing file directories under C:\Program Files

조회 수: 3 (최근 30일)
yySBU
yySBU 2018년 8월 31일
답변: Titus Edelhofer 2018년 8월 31일
Hello,
I have this issue where I used an app compiler and ran the exe file. However, when opening from a desktop shortcut, it changes the main file directory to the desktop instead of getting back to where the app was installed. How can I prevent this from happening? If I forcefully change the directory, cd('C:\Program Files\...more files), I can't seem to access any other files below it because of restrictions (admin access).
Thank you

답변 (1개)

Titus Edelhofer
Titus Edelhofer 2018년 8월 31일
Hi,
when you open the desktop shortcut properties you should be able to set the "working folder" to the folder you like. Then this should be the pwd within MATLAB compiled exe.
Titus

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by