RECHERCHER :
COMMUNAUTE MP
Identifiez vous ...
Devenir Membre
J'ai oublié mon MDP
DOMAINE MP
Bavardages
Langages Généraux
Langages Web
Langages DotNet
Autres langages
Dev. Jeux Video
Sécurité
Sys. Exploitation
Graphismes
Logiciels
Réseaux
Bases de données
Méthodologies
Emplois High-tech
Aide juridique
Articles juridiques
FORUM
Index des forums
Ajouter un sujet
Rechercher sujet
Contact Responsable
Devenir modérateur
CHAT MP IRC
Votre pseudo ...
Serv: irc.irc-land.org
Chan: #MoteurProg
PARTICIPER
Plus de 3500 emplois.
Rechercher un job
Déposez votre CV
Emplois High-tech

Visiteur MP

 Lancer une appli dans du code ruby

Forum : RUBY
Sous Catégorie : Aucune
Type du sujet : Sujet Normale
FAQ : FAQ RUBY

SUIVI DES SUJETS PAR MAIL

SUIVI PAR MAIL INACTIF

RESOLUTION DU SUJET SUJET NON RESOLU
BLOQUAGE DU SUJET SUJET ACTIF
APPARTENANCE A LA FAQ N'APPARTIENT PAS A LA FAQ


PAGE : [1]

POSTER UN NOUVEAU SUJET REPONDRE A CE SUJET

FORUM RUBY

PREMIERE PAGE

PAGE PRECEDENTE

Page précedente

Page suivante

PAGE SUIVANTE

DERNIERE PAGE
crackinett_boy
Nouveau membre
Inscrit : 21/01/2007
Messages : 2
Message
#121574
Posté le 21/01/07 à 18:44
Bonsoir !

J'aimerais savoir s'il était possible de lancer une application a partir d'un code ruby :

Par exemple primitive du type launch :

ex1: logiciel.new("path")
logiciel.launch(fichier,mode ouverture)

ex2: logiciel.new(c:/program files/microsoft office/msword.exe)
logiciel.new(c:/MonFichierWord.doc , READ )

J'espère que je me suis assez bien exprimé Smiley

Merci à ceux qui pourront m'aider

HAUT DE PAGE

PROFIL MEMBRE LUI ECRIRE 

Publicité
Inscrit : X
Messages : X
Message
#Aucun

HAUT DE PAGE

  

yougo
Co-Administrateur
Superviseur :
- Calculatrice.
- Système d'ex.
Modérateur :
- CGI
- Python
Chef de projet(s) :
- WSSI
- XDocSS

Avatar de yougo
Inscrit : 21/01/2004
Messages : 2256
Message
#121581
Posté le 21/01/07 à 20:55
Jette un oeil ici:
http://www.rubycentral.com/book/win32.html
__________________________
Aidez les autres membres en publiant sur le forum le code que nous vous avons aidé à créer !
ImageImageImage
Où sont les membres de MP ?

HAUT DE PAGE

PROFIL MEMBRE LUI ECRIRE 

bul
Membre du club
Avatar de bul
Inscrit : 26/01/2004
Messages : 949
Message
#121656
Posté le 22/01/07 à 16:34
bonjour,
Doc Ruby dit :

system system( aCmd [, args ]* ) -> true or false
Executes aCmd in a subshell, returning true if the command was found and ran successfully, false otherwise. A detailed error code is available in $?. The arguments are processed in the same way as for Kernel::exec on page 415.

system("echo *")
system("echo", "*")

OU

exec exec( command [, args ])

Replaces the current process by running the given external command. If exec is given a single argument, that argument is taken as a line that is subject to shell expansion before being executed. If multiple arguments are given, the second and subsequent arguments are passed as parameters to command with no shell expansion. If the first argument is a two-element array, the first element is the command to be executed, and the second argument is used as the argv[0] value, which may show up in process listings. In MSDOS environments, the command is executed in a subshell; otherwise, one of the exec(2) system calls is used, so the running command may inherit some of the environment of the original program (including open file descriptors).

exec "echo *" # echoes list of files in current directory
# never get here
exec "echo", "*" # echoes an asterisk
# never get here


Cordialement.
__________________________
~ mon site ~ m'écrire ~
Laissez une adresse Mail où vous écrire, en évitant les spams
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

HAUT DE PAGE

PROFIL MEMBRE LUI ECRIRE 

yougo
Co-Administrateur
Superviseur :
- Calculatrice.
- Système d'ex.
Modérateur :
- CGI
- Python
Chef de projet(s) :
- WSSI
- XDocSS

Avatar de yougo
Inscrit : 21/01/2004
Messages : 2256
Message
#121677
Posté le 22/01/07 à 18:17
J'ai corrigé mon lien plus haut Smiley
__________________________
Aidez les autres membres en publiant sur le forum le code que nous vous avons aidé à créer !
ImageImageImage
Où sont les membres de MP ?

HAUT DE PAGE

PROFIL MEMBRE LUI ECRIRE 

crackinett_boy
Nouveau membre
Inscrit : 21/01/2007
Messages : 2
Message
#121712
Posté le 22/01/07 à 23:09
Un grand Merci a yougo et bul pour votre aide (rapide et efficace:) !

Je vous souhaite une bonne soirée !

HAUT DE PAGE

PROFIL MEMBRE LUI ECRIRE 
POSTER UN NOUVEAU SUJET REPONDRE A CE SUJET

PREMIERE PAGE

PAGE PRECEDENTE Page précédente

Page suivante

PAGE SUIVANTE DERNIERE PAGE

FORUM RUBY



    PAGE : [1]



.: Site Web développé par Julien Pichot et l'équipe MPWG avec www.evolvia-web.com :.