MATLAB Answers

Use cmd to execute .exe

1 view (last 30 days)
han han
han han on 9 Dec 2019
As the title, I don't want to execute cmd in a specified or specific directory, but it can be executed no matter which directory I execute the file in.
How can it be modified?
out = fileread('1.txt');
cmd = ['xxx.exe', out];
system(cmd)
THX

  0 Comments

Sign in to comment.

Answers (0)

Sign in to answer this question.

Tags