MATLAB Answers

0

Changing file directories under C:\Program Files

yySBU 님이 질문을 제출함. 31 Aug 2018
최근 활동 Titus Edelhofer 님이 답변함. 31 Aug 2018
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

  댓글 수: 0

로그인 to comment.

태그

답변 수: 1

Titus Edelhofer 님의 답변 31 Aug 2018

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

  댓글 수: 0

로그인 to comment.



Translated by