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.

  • 相关阅读:
    [Elasticsearch] 向已存在的索引中加入自己定义filter/analyzer
    Hibernate持久化对象的状态
    android 利用cmdline,将參数从preloader传递到kernel
    HDOJ的题目分类
    activiti自己定义流程之Spring整合activiti-modeler实例(七):任务列表展示
    十大广泛使用的Linux发行版
    Windows下配置Git服务器和客户端 超全
    适当使用enum做数据字典 ( .net c# winform csharp asp.net webform )
    System.Drawing.Image在Save之后Type变了
    winform ListView应用之分组、重绘图标、网格线 (c# .net winform)
  • 原文地址:https://www.cnblogs.com/lansh/p/1187833.html
Copyright © 2011-2022 走看看