DefaultPath in 'uiputfile' function doesn't change when compiling to DLL
Mostrar comentarios más antiguos
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 comentario
Tushar Sinha
el 6 de Nov. de 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
Respuestas (0)
Categorías
Más información sobre MATLAB Compiler en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!