i have long-time task implemented in windows batch script need add existing windows batch script, requirement existing script should run before, without being slowed down added task.
i thinking calling task script in java thread might works, there difficulties:
how call windows batch script in java thread?
how quit java program without stop thread?
maybe wrong start, 1 give me ideas?
i think adding java code complicate task. can run additional batch file in separate process using start
command, , might serve purpose:
in first.bat:
@echo calling second.bat start second.bat @echo called second.bat
this create second command window. if don't want window show up, can use /b parameter, in start /b second.bat
Comments
Post a Comment