Copy a file to a parent folder
2 次查看(过去 30 天)
显示 更早的评论
I have a file in a subfolder that I want to copy and input into the parent folder. Is there a way to fun a script from inside the subfolder to copy the file up one level?
0 个评论
回答(2 个)
Matt J
2023-11-10
编辑:Matt J
2023-11-10
Is there a way to fun a script from inside the subfolder to copy the file up one level?
Yes, but I wonder why you think the script has to reside in the subfolder. You can run copyfile from any folder A to copy a file from any other folder B to any third folder C.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Search Path 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!