Dos command gives error
4 views (last 30 days)
Show older comments
Hi, dos('C:\Program Files\OrcadLite\PSpice\psp_cmd.exe test1.cir'); above code works at cmd prompt but not working in matlab and gives below errror
'C:\Program' is not recognized as an internal or external command, operable program or batch file.
.Please help me resolving this.
Thanking You, Sita
0 Comments
Accepted Answer
C.J. Harris
on 26 Mar 2013
If you want to send commands to an executable you need to modify the call slightly.
Try this:
dos('"C:\Program Files\OrcadLite\PSpice\psp_cmd.exe" test1.cir');
More Answers (1)
Wayne King
on 26 Mar 2013
Try this to get the correct path and string options
[file, path] = uigetfile('*.m', 'Select File');
fullFilename = fullfile(path, file);
Select the executable so that you get that path back with fullFilename.
Then try
dos(fullFilename)
does that open your application?
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!