Windows

cmd

Safecmd basics and operators

cmd /c "<command>"

Launches cmd and chains commands: && runs on success, & always; plus redirection. The batch foundation.

Examples

  • cmd /c "nginx -t && nginx -s reload"Run the next step only on success

Syntax

cmd /c|/k "command" (&&=成功時連結, &=無条件, >の リダイレクト)

Before you run it

Mostly about the syntax.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store