[Python] lancer un executable à partir d'un script Python

lancer un executable à partir d'un script Python [Python] - Programmation

Marsh Posté le 05-03-2002 à 16:01:58    

Bonjour,
 
savez vous comment lancer un exécutable windows par exemple à partir d'un script python?
 
merci d'avance.

Reply

Marsh Posté le 05-03-2002 à 16:01:58   

Reply

Marsh Posté le 05-03-2002 à 16:13:28    

je pense avoir trouvé la réponse à ma question.
 
 
 
Dial-Up w/ Python on Win32:  
Alex Martelli aleaxit@yahoo.com  
Wed, 1 Aug 2001 13:21:20 +0200  
 
Previous message: Dial-Up w/ Python on Win32:  
Next message: how to know whether the item in a diretory is a file/directory  
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]  
 
--------------------------------------------------------------------------------
 
"Xione Wrent" <xione@bellsouth.net> wrote in message
news:85H97.2823$kg.194231@e3500-atl2.usenetserver.com...
> Is there any way to launch a .DUN file (Dial-Up Networking) on a Windows
box
> using Python?
 
If you install the win32all extensions (or ActivePython that
comes with them), win32api.ShellExecute should work (if your
associations to extension .DUN are set up correctly, i.e.,
if
    start foo.dun
works as you desire from a command-prompt).
 
 
Alex

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed