bonjour,
je lance la commande suivante avec getRuntime().exec
la commande est "cmd.exe /c notepad++ file.txt" en fait c'est pour ouvrir un editeur externe (notepad++ par exemple).
cela fonctionne bien si il n'y a pas d'erreur, mais je n'arrive pas a savoir si il y a une erreur.
si par exemple j'essaie (voir exemple) "cmd.exe /c sse test.txt"
j'ai essayer exitValue mais j'ai une erreur illegalthreadstateexception : process has not exited
comment savoir si il y a une erreur ou non ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
merci
a+

 

 
		
		 
        

 
			
			



 
   


 getRuntime.exec savoir si c'est terminer (process has not exited)
 getRuntime.exec savoir si c'est terminer (process has not exited)
				 Répondre avec citation
  Répondre avec citation

 
  
 
 
			 
  
				
Partager