euh desole... J'avais oublie de changer le parametre de command dans le
process

 process = runtime.exec(command[0]+" "+command[1]);

Ca fonctionne tres bien

MERCI!!!

Sinon, un le petit programme JREXEC je ne peux pas communiquer avec un poste
windows. Question: on a un mainframe cytrix. Il y a t'il moyen de faire
communiquer un serveur unix vers windows ss avoir besoin de creer un
serveur.
-----Message d'origine-----
De : Damien Lecan [mailto:[EMAIL PROTECTED]]
Envoy� : mercredi 15 mai 2002 12:20
� : [EMAIL PROTECTED]
Objet : RE: comment executer une commande windows a partir de java


> String command = "C:\\temp\\essaiScript.bat ";
Windows ne sait ex�cuter les .bat
command.com (win9x, me) ou cmd.exe (win NT, 2000, XP) le savent par contre.

Si tu fais un
String[] command = {"cmd.exe /c", "C:\\temp\\essaiScript.bat "};

ca devrait marcher.

Damien Lecan


Répondre à