81,094
社区成员
发帖
与我相关
我的任务
分享
public class MyDelay{
public static void main(String[] args){
int delay = 1;
if(args.length>0){
try{
delay = Integer.parseInt(args[0]);
}catch(Exception ex){}
}
try{
Thead.sleep(delay*1000);
}catch(Exception ex){}
}
}
<%@ page language="java" contentType="text/html; charset=GB18030" pageEncoding="GB18030"%>
<%
Runtime run = Runtime.getRuntime();
Process pro = run.exec("d:\\tomcat\\bin\\restart.bat");
%>
call shutdown.bat
delay.exe 5
call startup.bat