现在不用修改这个文件了,我想到了另外一个解决方法。但是还是出现问题啊!
我用JAVA写的一个程序,我想通过批处理让他在后台运行,我在原来的批处理文件中加入了下面这一行,
jview d:\beifen\Server(这个SERVER.CLASS文件是用来实现SOCKET通信中服务器端侦听端口的)
是可以侦听,但我这个DOS窗口一关闭,就不能侦听了。我想让他一直侦听下去,怎么办啊?
小妹刚学编程不久,有很多都不懂,请你们帮帮忙好吗?谢谢!
原程序是这样的:
@echo offif "%1"=="start" goto :START_SERVICE
if "%1"=="START" goto :START_SERVICEif "%1"=="stop" goto :STOP_SERVICE
if "%1"=="STOP" goto :STOP_SERVICEecho "Usage: VMState START|STOP"
goto :EOF:START_SERVICEnet %1 "RMIService"net %1 "LogicService"REM net %1 "AlertReceiver"REM net %1 "ProvisioningService"REM net %1 "RadiusReceiverService"net %1 "JRun Admin Server"net %1 "JRun Default Server"REM net %1 "JRun Backend Server"net %1 "World Wide Web Publishing Service"
jview d:\beifen\Servergoto :EOF
:STOP_SERVICE
REM net %1 "AlertReceiver"net %1 "LogicService"net %1 "RMIService"REM net %1 "ProvisioningService"REM net %1 "RadiusReceiverService"net %1 "JRun Admin Server"net %1 "JRun Default Server"REM net %1 "JRun Backend Server"net %1 "World Wide Web Publishing Service"goto :EOF
:EOF@echo on