Re: Calling windows programs
- To: mathgroup at smc.vnet.net
- Subject: [mg53575] Re: Calling windows programs
- From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
- Date: Wed, 19 Jan 2005 01:59:24 -0500 (EST)
- Organization: Uni Leipzig
- References: <csiokk$nnu$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
Run["mplay32 /play /close " <> file];
Run["del " <> file];
Run /@ {["mplay32 /play /close " <> file, "del " <> file}
???
Regards
Jens
"Erich Neuwirth" <erich.neuwirth at univie.ac.at> schrieb im Newsbeitrag
news:csiokk$nnu$1 at smc.vnet.net...
> In Windows, I create a MIDI file from within Mathematica
> and then I want to play it and delete it with
> Run["mplay32 /play /close " <> file , "del " <> file]
> This does not work.
> The MIDI file does not even play.
> When I omit the del command, things work.
> Is there a way to force Mathematica to wait before executing the second
> command until the first one has finished?
> I can solve my problem with a batch file, but I would prefer
> a Mathematica only solution.
>
>