I have many folder names with spaces in it, ie “red dog” –> “c:\red dog\”
files = dir
str = ['cd ', files(3).name]
eval(str)
The execution returns the error do to the space:
>> eval(str)
Error using cd
Too many input arguments.
What is the work around?… thx
Do you have a reason for using
eval? Try just