系统函数system Function

ANSI 4.10.4.5 system 函数执行字符串的内容和模式ANSI 4.10.4.5 The contents and mode of execution of the string by the system function

system 函数执行内部操作系统命令,或者 C 程序中(而不是命令行中)的 .EXE、.COM(Windows NT 中的 .CMD)或 .BAT 文件。The system function executes an internal operating system command, or an .EXE, .COM (.CMD in Windows NT) or .BAT file from within a C program rather than from the command line.

系统函数查找命令解释器,它通常是 Windows NT 操作系统中的 CMD.EXE 或 Windows 中的 COMMAND.COM。The system function finds the command interpreter, which is typically CMD.EXE in the Windows NT operating system or COMMAND.COM in Windows. 系统函数随后将自变量字符串传递到命令解释器。The system function then passes the argument string to the command interpreter.

有关详细信息,请参阅 system、_wsystemFor more information, see system, _wsystem.

另请参阅See Also

库函数Library Functions