Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Jun 1, 2006
Messages
10
Location
US
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
 
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

Back
Top