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.

  • 相关阅读:
    例如找出令人信服的权威C++中间malloc与new
    nRF905
    POJ 3280 间隔DP
    SharePoint管理中心来配置资源限制(大名单)
    C#值传递和按引用传递
    UVA 810
    hdu 4870 Rating(可能性DP&高数消除)
    【Espruino】NO.06 关键是你的仆人(继续)
    Struts2_1_struts2建立一个执行环境
    kendoui仪表板和直方图 演示样本
  • 原文地址:https://www.cnblogs.com/lansh/p/1187833.html
Copyright © 2011-2022 走看看