English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Howto execute a command without the "cmd" windows opening?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-11-04 (11:15)
From: Matthieu Dubuget <matthieu.dubuget@g...>
Subject: Howto execute a command without the "cmd" windows opening?

I'm trying to run a separated program from an ocaml program (linked with
"-subsystem windows" flexlink option). I'm using mingw flavour of Ocaml.

The program to run separately is also an ocaml program, linked with
"-subsystem windows".

The problem is that a "c:\windows\system32\cmd.exe" windows pops up: I'd
like to avoid this.

I tried Sys.command and Unix.system without success.

Is there any way to run a program and get the process status without
using cmd.exe ?