【问题标题】:Can we run a batch file from Vector canoe我们可以从 Vector canoe 运行批处理文件吗
【发布时间】:2016-12-13 08:38:38
【问题描述】:

是否有可能从矢量独木舟运行批处理文件? 如果是这样,我需要从 Canoe 运行一个批处理文件,它将触发一个 python 脚本并开始执行它。

【问题讨论】:

    标签: batch-file canoe


    【解决方案1】:

    是的,您可以使用 sysExec() 和 sysExecCmd() 运行批处理文件。

    函数原型:

    long sysExec(char cmd[], char params[]);
    long sysExec(char cmd[], char params[], char directory[]); // form 2
    long sysExecCmd(char cmd[], char params[]);
    long sysExecCmd(char cmd[], char params[], char directory[]); // form 2
    

    示例 1:

    sysExec("C:\\Program Files\\Beyond Compare 3\\BCompare.EXE", Commandline, "C:\\Program Files\\Beyond Compare 3");
    

    示例 2:

    char configDir[1024];
    getAbsFilePath("", configDir, elcount(configDir)); 
    sysExecCmd("dir", "/O:-D", configDir); // show files in configuration directory, newest files first
    

    【讨论】:

      猜你喜欢
      • 2023-03-14
      • 2014-09-05
      • 1970-01-01
      • 1970-01-01
      • 2014-08-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-21
      相关资源
      最近更新 更多