  | 
			
				SoftTree Technologies 
				Technical Support Forums
			 | 
		 
		  | 
	 
	 
	
	
	
		
	
	
	
		| Author | 
		Message | 
	 
	
		
			John Natale 
			 
			
  
			
			
				Joined: 13 Sep 2000 Posts: 107
  | 
			 
			  
		 | 
		
			
				  Java Script | 
				     | 
			 
			
				Hello,
 
 
Is there a JavaScript equivalent to the JAL ProcessGetExitCode function?
 
 
Thanks,
 
 
John
  | 
			 
		  | 
	 
	
		| Fri Oct 03, 2014 12:02 pm | 
		          | 
	 
	
		  | 
	 
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7991
  | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				I'm afraid there is no direct method. But indirectly, you can use a wrapper batch file to write exit code to a file, and then the JavaScript job read it from the file. Here is example batch file for the job
 
 
@echo off
 
set errorlevel=
 
MyApp1.exe
 
echo %errorlevel% > status.txt
  | 
			 
		  | 
	 
	
		| Fri Oct 03, 2014 1:09 pm | 
		          | 
	 
	
		  | 
	 
	
		 | 
	 
 
  
	 
	    
	   | 
	
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
  | 
   
 
		 | 
	 
	  |