Why do I receive a "nonexistent directory" error when I try to CD to a directory using the MATLAB Distributed Computing Engine 1.0.1 (R14SP2)?
4 views (last 30 days)
Show older comments
In my taskStartup.m file for the MDCE, I am trying to CD to a directory. I can CD to this directory without an error from the MATLAB command window. However, when I CD to this directory from my taskStartup.m file, I get the following error:
Error using ==> cd
Cannot CD to s:\tempdir\ (Name is nonexistent or not a directory).
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
A Distributed Computing worker runs as a service. On Windows, a service does not know about network drive mappings.
As a workaround, use UNC paths, e.g., \\mathworks\tempdir instead of S:\ on a Windows machine. The worker can still CD to a local drive like C:\ or D:\.
0 Comments
More Answers (0)
See Also
Categories
Find more on Search Path in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!