Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google apps script 如何从google脚本执行.bat文件?_Google Apps Script - Fatal编程技术网

Google apps script 如何从google脚本执行.bat文件?

Google apps script 如何从google脚本执行.bat文件?,google-apps-script,Google Apps Script,我正在尝试自动发送带有内联图片的电子邮件。我创建了一个.bat文件来创建图片,还有发送电子邮件的谷歌应用程序脚本 我现在想把这一切都变成一个过程。如何从我的google scrpt执行.bat文件 我试过了 WshShell = new ActiveXObject("WScript.Shell"); WshShell.Run("cmd /c "); 并获取错误 “未定义ActiveXObject” 我正在使用chrome,并且已经读到ch

我正在尝试自动发送带有内联图片的电子邮件。我创建了一个.bat文件来创建图片,还有发送电子邮件的谷歌应用程序脚本

我现在想把这一切都变成一个过程。如何从我的google scrpt执行.bat文件

我试过了

    WshShell = new ActiveXObject("WScript.Shell");
    WshShell.Run("cmd /c ");
并获取错误 “未定义ActiveXObject”

我正在使用chrome,并且已经读到chrome不支持ActiveXObject

在google脚本中有没有其他方法来执行.bat文件


感谢

GAS是一项基于云的服务,运行在谷歌的服务器上;它无法执行计算机本地的*.bat文件。