Path: news.mathworks.com!not-for-mail
From: "Emanuele" <emanuelemignosa.nospam@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: run a executable program (path)
Date: Wed, 4 Mar 2009 19:42:02 +0000 (UTC)
Organization: Bocconi
Lines: 70
Message-ID: <gomlia$28k$1@fred.mathworks.com>
References: <gom2ba$m10$1@fred.mathworks.com> <op.up93q8wga5ziv5@uthamaa.dhcp.mathworks.com>
Reply-To: "Emanuele" <emanuelemignosa.nospam@mathworks.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1236195722 2324 172.30.248.38 (4 Mar 2009 19:42:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Mar 2009 19:42:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1017421
Xref: news.mathworks.com comp.soft-sys.matlab:522555


"Ashish Uthama" <first.last@mathworks.com> wrote in message <op.up93q8wga5ziv5@uthamaa.dhcp.mathworks.com>...
> On Wed, 04 Mar 2009 12:30:05 -0500, Emanuele  
> <emanuelemignosa.nospam@mathworks.com> wrote:
> 
> > "Ashish Uthama" <first.last@mathworks.com> wrote in message  
> > <op.up903jh1a5ziv5@uthamaa.dhcp.mathworks.com>...
> >> On Wed, 04 Mar 2009 09:14:02 -0500, Emanuele
> >> <emanuelemignosa.nospam@mathworks.com> wrote:
> >>
> >> > Hi all, i would deploy a M-File program in another PC without Matlab.
> >> > I have followed the instructions as showed in Matlab Site to compile a
> >> > standalone program.
> >> > http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/
> >> >
> >> > I have compiled the M-Files using this command and the same M-Files as
> >> > in the instructions
> >> > mcc -mv magicsquare.m
> >> > It would seem ok, but i'dont understand how i can run the executable
> >> > program.
> >> > What is the right path that i must write in the DOS command window?
> >> >
> >> > I have tried to copy  all files obtained after compilation in the  
> >> foloow
> >> > path
> >> > matlabroot\bin\win32
> >> > and than i have tried to run .exe file writing this command
> >> > matlabroot\bin\win32\magicsquare.exe 3 (Where 3 is the matrixsquare
> >> > lenght and the only imput of M-File)
> >> > but i have not seen the matrix in the window as in the instruction,
> >> > instead if don't write the matrix lenght(3) i recived a error message
> >> > becouse missing imput variable.
> >> > It's right?
> >>
> >> > If is right why i don't see the matrix value in Dos windows after i
> >> > launch programm?
> >>
> >> First, did you install the MCR on the 'another PC without MATLAB' ?
> >>
> >> If you did, then you seem to calling it correctly.
> >> What _do_ you see when you run the following from a windows command  
> >> prompt
> >> after you CD to the directory which has the magicswuare.exe file?
> >>      magicsquare.exe 3
> > Thank you very much for your advice, but i have just fix the problem.  
> > The error was in the code M-file and not in the path root. So when i  
> > launch the .exe file it's run fine.
> > Instead i have another problem, i  would hide the code, i don't want  
> > show it.
> > It's possible. Infact when i click on .exe file, it give me a  
> > magicsquare.mcr(folder) file that contain the m-file code. How can solve  
> > the problem????
> >
> > Thanks in advance
> >
> > Emanuele
> 
> 
> Emanuele,
> 
> Did you try opening the M file?
> If you did, you would notice that it is encrypted.
> 
> Ashish

Thank you Ashish. I have try to open file, it is encrypted. You have right.
But what is the security level? Is high ?

Thanks

Emanuele