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 件のコメント

Tushar Sinha
Tushar Sinha 2015 年 11 月 6 日
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 ExchangeMATLAB 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