【问题标题】:batch file with loop and without console带循环且不带控制台的批处理文件
【发布时间】:2015-02-03 04:04:59
【问题描述】:

我有在 Windows 上运行的批处理文件:

SET /A XCOUNT=29
:start
SET /A XCOUNT+=1
java -Xms2048m -Xmx3072m -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC  -jar newsrvrSodfa.jar >.\loging\log%XCOUNT%.txt
goto start

如所见,我有一个循环,我的问题,如何在不显示 consol 的情况下运行此文件,同时又不会丢失循环

【问题讨论】:

    标签: loops batch-file console


    【解决方案1】:
    start "" /b java -Xms2048m -Xmx3072m -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC  -jar newsrvrSodfa.jar >.\loging\log%XCOUNT%.txt
    

    ?

    start /b 选项用于不创建新窗口

    【讨论】:

    • thanx : 循环会注意丢失吗?
    • 同时考虑 /WAIT 选项:start "" /b /WAIT java ...
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多