A dos command problem

15 views (last 30 days)
Cem TAGIT
Cem TAGIT on 16 Feb 2022
Answered: Image Analyst on 16 Feb 2022
the code below does not work in Matlab but when I execute it in cmd window it works. why?
command=[dir(1) ': & cd "' dir '" & "' filename '.bat"'];
err=dos(command);

Answers (1)

Image Analyst
Image Analyst on 16 Feb 2022

Categories

Find more on File Operations in Help Center and File Exchange

Tags

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!