C 本地脚本的执行

来源:互联网 发布:金税三期软件服务热线 编辑:程序博客网 时间:2024/05/06 09:01

    C语言中执行本地脚本命令的接口为system函数。

    system函数的原型为:

    #include<stdlib.h>

    int system(const char* command);

    该函数会将command命令传递给本地的命令处理器执行,在Windows环境下为DOS命令提示符处理器cmd.exe,在UNIX类系统中则为shell外壳程序。

    具体请参照http://pubs.opengroup.org/onlinepubs/009604499/functions/system.html

原创粉丝点击