posts - 21,  comments - 0,  trackbacks - 0
C:>Help exit
Quits the CMD.EXE program (command interpreter) or the current batch
script.

EXIT [/B] [exitCode]

  /B          specifies to exit the current batch script instead of
              CMD.EXE.  If executed from outside a batch script, it
              will quit CMD.EXE

  exitCode    specifies a numeric number.  if /B is specified, sets
              ERRORLEVEL that number.  If quitting CMD.EXE, sets the process
              exit code with that number.
              
在一个batch 里面,如果用Runtime.exec(a.bat), 那么必须用 exit exitCode, 而不能用exit /b exitCode.
否则java得不到a.bat 的return code
posted on 2007-03-23 11:17 自强不息的猪 阅读(3226) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航:
 
<2007年3月>
25262728123
45678910
11121314151617
18192021222324
25262728293031
1234567

常用链接

留言簿(3)

随笔档案(21)

文章分类(2)

文章档案(8)

links

最新随笔

搜索

  •  

积分与排名

  • 积分 - 14860
  • 排名 - 1996

最新评论

阅读排行榜

评论排行榜