Effacer les filtres
Effacer les filtres

Changing file directories under C:\Program Files

3 vues (au cours des 30 derniers jours)
yySBU le 31 Août 2018
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

Réponses (1)

Titus Edelhofer
Titus Edelhofer le 31 Août 2018
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.


En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by