Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't cd to dir

Status
Not open for further replies.

bonosa

Computer
Jun 1, 2006
10
In matlab if I do at the command line:

testdir = 'c:\'

Then I do cd testdir, it says
??? Error using ==> cd
Cannot CD to testdir (Name is nonexistent or not a directory).

What am I doing wrong?

Of course if I just say cd C:\ it has no problem.
thanks,
sb
 
Replies continue below

Recommended for you

I did cd (testdir) and that worked. Is that whatyou meant I should do in your response?
thanks
 
You should read the help file. Parentheses will not work with folder names containing spaces.

TTFN



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor