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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store