Path: news.mathworks.com!not-for-mail
From: "Jeroen" <no-e-mail@no-e-mail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Closing DOS window from matlab
Date: Fri, 6 Mar 2009 15:53:01 +0000 (UTC)
Organization: TNO Defensie en Veiligheid
Lines: 10
Message-ID: <gorgst$ate$1@fred.mathworks.com>
References: <ghnjph$qog$1@fred.mathworks.com>
Reply-To: "Jeroen" <no-e-mail@no-e-mail.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 1236354781 11182 172.30.248.38 (6 Mar 2009 15:53:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 6 Mar 2009 15:53:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 97866
Xref: news.mathworks.com comp.soft-sys.matlab:523052


Hi Quentin,

Just came across a similar issue. I solved it using a trick; made a .bat file which contains the following two lines:

yourprogram.exe
exit

If you call the .bat file from Matlab in the same way you would start a normal executable, the .exe will be run in a dos window, which should now close after the .exe has finished. I have no experience with the dde library, however.

Jeroen