From: Mike Williams on 19 Jan 2010 08:29 Hi, WHen I try to create an executable for a matlab scrip that was built with GUIDE, I get the following error: "DOS commands may not be executed when the current directory is a UNC pathname." What am I doing wrong? Mike
From: Steven Lord on 19 Jan 2010 09:39 "Mike Williams" <bruceyincanada(a)hotmail.com> wrote in message news:hj4c30$qkc$1(a)fred.mathworks.com... > Hi, > WHen I try to create an executable for a matlab scrip that was built with > GUIDE, I get the following error: > > "DOS commands may not be executed when the current directory is a UNC > pathname." > > What am I doing wrong? You're trying to run MATLAB Compiler from a directory whose name is a UNC path: http://msdn.microsoft.com/en-us/library/cc227007%28PROT.13%29.aspx A UNC path looks something like: \\mynetwork\mymachine\mydir MATLAB Compiler needs to execute system commands, and as the Note in the reference page indicates this won't work if the current directory is a UNC path. http://www.mathworks.com/access/helpdesk/help/techdoc/ref/dos.html Map the UNC path to a network drive and CD to that network drive, then try compiling again. If you're not sure how to do this on your version of Windows, search the Microsoft website for "map network drive" and the name of the version of Windows you're using. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
From: Mike Williams on 19 Jan 2010 09:54 Thanks Steve, missed that. Sorted. "Steven Lord" <slord(a)mathworks.com> wrote in message <hj4g7h$qjc$1(a)fred.mathworks.com>... > > "Mike Williams" <bruceyincanada(a)hotmail.com> wrote in message > news:hj4c30$qkc$1(a)fred.mathworks.com... > > Hi, > > WHen I try to create an executable for a matlab scrip that was built with > > GUIDE, I get the following error: > > > > "DOS commands may not be executed when the current directory is a UNC > > pathname." > > > > What am I doing wrong? > > You're trying to run MATLAB Compiler from a directory whose name is a UNC > path: > > http://msdn.microsoft.com/en-us/library/cc227007%28PROT.13%29.aspx > > A UNC path looks something like: > > \\mynetwork\mymachine\mydir > > MATLAB Compiler needs to execute system commands, and as the Note in the > reference page indicates this won't work if the current directory is a UNC > path. > > http://www.mathworks.com/access/helpdesk/help/techdoc/ref/dos.html > > Map the UNC path to a network drive and CD to that network drive, then try > compiling again. If you're not sure how to do this on your version of > Windows, search the Microsoft website for "map network drive" and the name > of the version of Windows you're using. > > -- > Steve Lord > slord(a)mathworks.com > comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ >
|
Pages: 1 Prev: randfeatures Next: Solving a system of equations in Simulink |