博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
What does cmd /C mean? [closed] 关于nodejs的子进程部分
阅读量:6232 次
发布时间:2019-06-21

本文共 1775 字,大约阅读时间需要 5 分钟。

之前一直很不明白为什么 

child_process.spawn(command[, args][, options])

 

  • shell  |  If true, runs command inside of a shell. Uses '/bin/sh' on UNIX, and 'cmd.exe' on Windows. A different shell can be specified as a string. The shell should understand the -c switch on UNIX, or /d /s /c on Windows. Defaults to false (no shell).

 

对shell的解释!!!

 

尤其是 /d /s /c 到底是什么鬼???

 

后来我google终于明白了!!!

 

Microsoft Windows XP [Version 5.1.2600](C) Copyright 1985-2001 Microsoft Corp.C:\>cmd /?Starts a new instance of the Windows XP command interpreterCMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF]    [[/S] [/C | /K] string]/C      Carries out the command specified by string and then terminates/K      Carries out the command specified by string but remains/S      Modifies the treatment of string after /C or /K (see below)/Q      Turns echo off/D      Disable execution of AutoRun commands from registry (see below)/A      Causes the output of internal commands to a pipe or file to be ANSI/U      Causes the output of internal commands to a pipe or file to be        Unicode/T:fg   Sets the foreground/background colors (see COLOR /? for more info)/E:ON   Enable command extensions (see below)/E:OFF  Disable command extensions (see below)/F:ON   Enable file and directory name completion characters (see below)/F:OFF  Disable file and directory name completion characters (see below)/V:ON   Enable delayed environment variable expansion using ! as the        delimiter. For example, /V:ON would allow !var! to expand the        variable var at execution time.  The var syntax expands variables        at input time, which is quite a different thing when inside of a FOR        loop./V:OFF  Disable delayed environment expansion.

 

转载于:https://www.cnblogs.com/huenchao/p/6215151.html

你可能感兴趣的文章
Vue动态组件
查看>>
ES2017异步函数现已正式可用
查看>>
DBA-io
查看>>
【转】批处理常用符号详解
查看>>
Uncaught TypeError: jQuery.i18n.browserLang is not a function
查看>>
JavaScript中的闭包详解
查看>>
【JSP】JSP Action动作标签
查看>>
iOS:CoreText的常用语法
查看>>
dropify,不错的图片上传预览插件
查看>>
为什么都不写博
查看>>
希腊字母表
查看>>
httpd配置文件httpd.conf规则说明和一些基本指令
查看>>
python中self cls init的理解
查看>>
java:类集操作总结
查看>>
Flake8学习
查看>>
SpringBoot项目eclipse运行正常maven install打包启动后报错ClassNotFoundException
查看>>
ASP.NET Core的身份认证框架IdentityServer4(9)-使用OpenID Connect添加用户认证
查看>>
[Python] String Formatting
查看>>
lapis 处理接收到的json 数据
查看>>
【spring boot logback】日志使用自定义的logback-spring.xml文件后,application.properties中关于日志的相关配置还会起作用么...
查看>>