zoukankan      html  css  js  c++  java
  • Start Starts a separate window to run a specified program or command.

    这个命令可以在批处理(bat)文件中单独起多个进程(process),同时执行!
    例如:
    start cmd /c ..\dynamips-0.2.8-RC2-cygwin\dynamips-w2000.exe -7200
    ..\dynagen
    -0.11.0\dynagen.py 实验1.net


    start ["title"] [/dpath] [/i] [/min] [/max] [/separate| /shared] [/low|/normal|/high|/realtime] [/wait] [/b] [filename] [parameters]

    Parameters

    none

    Used without parameters, start opens a second command prompt window.

    "title"

    Specifies the title to display in window title bar.

    /d path

    Specifies the startup directory.

    /i

    Passes the Cmd.exe startup environment to the new window.

    /min

    Starts a new minimized window.

    /max

    Starts a new maximized window.

    /separate

    Starts 16-bit Windows programs in separate memory space.

    /shared

    Starts 16-bit Windows programs in shared memory space.

    /low

    Starts an application in the idle priority class.

    /normal

    Starts an application in the normal priority class.

    /high

    Starts an application in the high priority class.

    /realtime

    Starts an application in the realtime priority class.

    /wait

    Starts an application and waits for it to end.

    /b

    Does not create a new window. CTRL+C handling is ignored unless the application enables CTRL+C processing. Use CTRL+BREAK to interrupt the application.

    filename

    Specifies the command or program to start.

    parameters

    Specifies parameters to pass to the command or program.

    When command extensions are enabled (the default setting in Windows 2000), external command invocation through the command line or the start command changes as follows:

    • Nonexecutable files may be invoked through their file association just by typing the name of the file as a command. For example, word.doc would open the application associated with the .doc file extension. Click assoc and ftype in the Related Topics list for information on creating these associations from within a command script.
    • When executing an application that is a 32-bit GUI application, cmd does not wait for the application to terminate before returning to the command prompt. This new behavior does not occur if executing within a command script.
    • When executing a command line whose first token is the string "CMD" without an extension or path qualifier, then "CMD" is replaced with the value of the COMSPEC variable. This prevents picking up cmd from the current directory.
    • When executing a command line whose first token does not contain an extension, then CMD.EXE uses the value of the PATHEXT environment variable to determine which extensions to look for and in what order. The default value for the PATHEXT variable is:
              .COM;.EXE;.BAT;.CMD

      Note

    • The syntax is the same as the PATH variable, with semicolons separating the different elements.
    • When searching for an executable, if there is no match on any extension, then looks to see if the name matches a directory name. If it does, the start command opens Windows Explorer on that path. If done from the command line, it is the equivalent to using the cd /d command to that path.

  • 相关阅读:
    [ML] the notes
    [Java] 在 jar 文件中读取 resources 目录下的文件
    [LeetCode] 53. Maximum Subarray 解题思路
    [git] git 分支管理和工作流程
    debug实战:Unmanaged High Memory非托管高内存
    batch insert 1 million datas into mysql
    nuget的小Tips
    debug实战:进程Hang+High CPU
    debug实战:COM组件GetToSTA导致高内存+GC被阻塞
    svn cleanup failed问题解决
  • 原文地址:https://www.cnblogs.com/lansh/p/1187833.html
Copyright © 2011-2022 走看看