How do I access a directory with spaces in its name in Microsoft Windows?

123 views (last 30 days)
When issuing a CD command to a directory with spaces in it such as:
c:\test lab
This error occurrs:
??? Error using ==> cd
Too many input arguments.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
Here is an example of how to do this from within MATLAB.
To access the directory:
c:\test lab\data set
This command can be used:
cd 'c:\test lab\data set'

More Answers (0)

Categories

Find more on File Operations 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!