what is the alternative of cd in .executable app ?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Kaustubh hike
el 3 de Sept. de 2021
Respondida: Rik
el 3 de Sept. de 2021
Hi,
I am converting mdf into mat, for the same I have created executable app. while executing following commands, the currently dictionary should be the folder having .mdf files . If I do that by puting cd command then it gives error while running the executable app.
What can be solution?
doscmd = ['"' converterfile '" -C:' convtype '.dll -IF:"' inifile '" "' files{f} '" ' tempconvfilename];
[status, result] = dos(doscmd);
2 comentarios
Rik
el 3 de Sept. de 2021
Did you try the Matlab cd, or the system cd? You should be able to add it to your system call.
Respuesta aceptada
Rik
el 3 de Sept. de 2021
You can use && to execute another command if the first one completes successfully:
doscmd = [...
'cd /d "' pathTargetFiles '" && ' ...
'"' converterfile '" -C:' convtype '.dll -IF:"' inifile '" "' files{f} '" ' tempconvfilename];
[status, result] = dos(doscmd);
The /d switch allows switching between partitions as well (in case either pathTargetFiles or your system happen to be on something other than C).
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Application Deployment en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!