string variable and command prompt
Mostrar comentarios más antiguos
I know you can use a string variable with cd such as dir = 'C:Users\User\Documents\Matlab' then cd(dir). Is that same type of command possible using the system command such as [status] = system('move dir\file.txt newlocation')
2 comentarios
Adam
el 20 de Jun. de 2018
I would have though you could try it and get an answer far faster than on here! As far as I know the string you give to the system function will be interpreted in the context of the command line so if it is valid in that context then it would work, otherwise not.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre File Operations 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!