Cmd .bat文件,非阻塞运行/启动

Cmd .bat文件,非阻塞运行/启动,cmd,batch-file,Cmd,Batch File,如何在.bat文件中同时启动2个应用程序?我当前的文本是 cd mydir my.exe my.exe difParams //bat is finished. i dont want my.exe to close 这将在后台启动exe(并避免标题问题,请参见下文) start命令也提供了一些选项,请使用start/?列出这些选项: C:>start /? Starts a separate window to run a specified program or command.

如何在.bat文件中同时启动2个应用程序?我当前的文本是

cd mydir
my.exe
my.exe difParams
//bat is finished. i dont want my.exe to close
这将在后台启动exe(并避免标题问题,请参见下文)

start命令也提供了一些选项,请使用
start/?
列出这些选项:

C:>start /?  
Starts a separate window to run a specified program or command.

START ["title"] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
      [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
      [/NODE <NUMA node>] [/AFFINITY <hex affinity mask>] [/WAIT] [/B]
      [command/program] [parameters]

    "title"     Title to display in window title bar.
    path        Starting directory.
    B           Start application without creating a new window. The
                application has ^C handling ignored. Unless the application
                enables ^C processing, ^Break is the only way to interrupt
                the application.
    I           The new environment will be the original environment passed
                to the cmd.exe and not the current environment.
    MIN         Start window minimized.
    MAX         Start window maximized.
    SEPARATE    Start 16-bit Windows program in separate memory space.
    SHARED      Start 16-bit Windows program in shared memory space.
    LOW         Start application in the IDLE priority class.
    NORMAL      Start application in the NORMAL priority class.
    HIGH        Start application in the HIGH priority class.
    REALTIME    Start application in the REALTIME priority class.
    ABOVENORMAL Start application in the ABOVENORMAL priority class.
    BELOWNORMAL Start application in the BELOWNORMAL priority class.
    NODE        Specifies the preferred Non-Uniform Memory Architecture (NUMA)
                node as a decimal integer.
    AFFINITY    Specifies the processor affinity mask as a hexadecimal number.
                The process is restricted to running on these processors.

                The affinity mask is interpreted differently when /AFFINITY and
                /NODE are combined.  Specify the affinity mask as if the NUMA
                node's processor mask is right shifted to begin at bit zero.
                The process is restricted to running on those processors in
                common between the specified affinity mask and the NUMA node.
                If no processors are in common, the process is restricted to
                running on the specified NUMA node.
    WAIT        Start application and wait for it to terminate.
    command/program
                If it is an internal cmd command or a batch file then
                the command processor is run with the /K switch to cmd.exe.
                This means that the window will remain after the command
                has been run.

                If it is not an internal cmd command or batch file then
                it is a program and will run as either a windowed application
                or a console application.

    parameters  These are the parameters passed to the command/program.
C:>start/?
启动单独的窗口以运行指定的程序或命令。
开始[“标题”][/D路径][/I][/MIN][/MAX][/SEPARATE |/SHARED]
[/低/正常/高/实时/高于正常/低于正常]
[/NODE][/AFFINITY][/WAIT][/B]
[命令/程序][参数]
“标题”要显示在窗口标题栏中的标题。
路径开始目录。
B在不创建新窗口的情况下启动应用程序。这个
应用程序已忽略^C处理。除非申请
启用^C处理,^Break是中断的唯一方法
应用程序。
我认为新的环境将是原来的环境通过
指向cmd.exe,而不是当前环境。
最小开始窗口最小化。
最大开始窗口最大化。
在单独的内存空间中单独启动16位Windows程序。
共享内存空间中的共享启动16位Windows程序。
空闲优先级类别中的低启动应用程序。
正常优先级类别中的正常启动应用程序。
高优先级类中的高启动应用程序。
实时优先级类中的实时启动应用程序。
高于正常优先级级别中的高于正常的启动应用程序。
低于正常优先级类中的低于正常启动应用程序。
节点指定首选的非统一内存体系结构(NUMA)
节点作为十进制整数。
关联将处理器关联掩码指定为十六进制数。
该进程仅限于在这些处理器上运行。
当/affinity和
/节点是组合的。将关联掩码指定为NUMA
节点的处理器掩码右移,从位0开始。
该进程仅限于在中的处理器上运行
指定的关联掩码和NUMA节点之间的公用项。
如果没有共同的处理器,则该进程仅限于
在指定的NUMA节点上运行。
等待启动应用程序并等待其终止。
命令/程序
如果是内部cmd命令或批处理文件,则
命令处理器通过/K开关运行到cmd.exe。
这意味着该窗口将在命令执行后保留
已经运行了。
如果不是内部cmd命令或批处理文件,则
它是一个程序,将作为窗口应用程序运行
或控制台应用程序。
这些参数是传递给命令/程序的参数。

一个棘手的问题是“title”出现在可执行文件及其参数之前,因此有时您需要给应用程序一个title,以便开始正确解析参数-|

请在答案上方的示例中添加title属性。完成:)谢谢你的提示。
C:>start /?  
Starts a separate window to run a specified program or command.

START ["title"] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
      [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
      [/NODE <NUMA node>] [/AFFINITY <hex affinity mask>] [/WAIT] [/B]
      [command/program] [parameters]

    "title"     Title to display in window title bar.
    path        Starting directory.
    B           Start application without creating a new window. The
                application has ^C handling ignored. Unless the application
                enables ^C processing, ^Break is the only way to interrupt
                the application.
    I           The new environment will be the original environment passed
                to the cmd.exe and not the current environment.
    MIN         Start window minimized.
    MAX         Start window maximized.
    SEPARATE    Start 16-bit Windows program in separate memory space.
    SHARED      Start 16-bit Windows program in shared memory space.
    LOW         Start application in the IDLE priority class.
    NORMAL      Start application in the NORMAL priority class.
    HIGH        Start application in the HIGH priority class.
    REALTIME    Start application in the REALTIME priority class.
    ABOVENORMAL Start application in the ABOVENORMAL priority class.
    BELOWNORMAL Start application in the BELOWNORMAL priority class.
    NODE        Specifies the preferred Non-Uniform Memory Architecture (NUMA)
                node as a decimal integer.
    AFFINITY    Specifies the processor affinity mask as a hexadecimal number.
                The process is restricted to running on these processors.

                The affinity mask is interpreted differently when /AFFINITY and
                /NODE are combined.  Specify the affinity mask as if the NUMA
                node's processor mask is right shifted to begin at bit zero.
                The process is restricted to running on those processors in
                common between the specified affinity mask and the NUMA node.
                If no processors are in common, the process is restricted to
                running on the specified NUMA node.
    WAIT        Start application and wait for it to terminate.
    command/program
                If it is an internal cmd command or a batch file then
                the command processor is run with the /K switch to cmd.exe.
                This means that the window will remain after the command
                has been run.

                If it is not an internal cmd command or batch file then
                it is a program and will run as either a windowed application
                or a console application.

    parameters  These are the parameters passed to the command/program.