Ajouter un commentaire

wiss20000

à propos le code que j'ai proposer merche bien si le fichier "test.txt" setrouve sous le meme répertoire que le .java

//--lancer le .bat
		String[] cmd = new String[3];
		cmd[0] = "cmd.exe" ;
		cmd[1] = "/C" ;
		cmd[2] = "C:\\test.bat"; 
		Runtime rt = Runtime.getRuntime();
		Process process = rt.exec(cmd);
		process.waitFor();

Filtered HTML

Plain text

CAPTCHA
Cette question permet de vérifier que vous n'êtes pas un robot spammeur :-)
 V     V  L     BBBB   N   N   SSS  
V V L B B NN N S
V V L BBBB N N N SSS
V V L B B N NN S
V LLLL BBBB N N SSSS