DefaultPath in 'uiputfile' function doesn't change when compiling to DLL
Show older comments
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 Comment
Tushar Sinha
on 6 Nov 2015
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
Answers (0)
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!