DefaultPath in 'uiputfile' function doesn't change when compiling to DLL

I run a script that contains the command:
[FileName,PathName] = uiputfile({'.xls','.csv'},'Save Table',['D:\MyProject\Docs\','Stats.xls'])
When I run my script in Matlab, the 'DefaultPath' that appears in the 'save' window is correct, but when I compile the script to a DLL file and run it, the 'DefaultPath' that appears in the 'save' window is the one where the DLL file is ('C:\ProgramFiles\'). All other parameters are correct (window Title,DefaultFileName...)
How is this possible and how can I fix it?
Thanks!

1 commentaire

Hi Reuven,
I tried reproducing the issue at my end but even the standalone executable (assuming by dll you mean the .exe file) opened the correct folder when using the "uiputfile" method.
Do you have the same folder structure 'D:\MyProject\Docs\' on the system where you are executing the standalone executable?
Thanks,
Tushar

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur MATLAB Compiler dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by