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

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

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

질문:

2015년 11월 4일

댓글:

2015년 11월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by