计划任务 - CScript错误:Windows脚本宿主的执行失败。 (0x80020102) [英] Scheduled task - CScript Error: Execution of the Windows Script Host failed. (0x80020102)

查看:693
本文介绍了计划任务 - CScript错误:Windows脚本宿主的执行失败。 (0x80020102)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行预定任务 调用脚本,挂起而不执行。什么都没发生..


Running a scheduled task  that call a script, hangs without executing. Nothing happens..

手动执行相同的批次它可以正常工作。

Executing the same batch manually it works correctly.

打印输出到文件报告:

CScript错误:Windows脚本宿主的执行失败。 (0x80020102)

CScript Error: Execution of the Windows Script Host failed. (0x80020102)

我在Windows 2008 R2 SP1中遇到这种情况:$

I'm experiencing this in a Windows 2008 R2 SP1 scheduling this:

for %% X in(c:\\\ batch \ * .doc)do cscript.exe // nologo // E:jscript SaveAsPDF.js" %% X" >> convert.log

for %%X in (c:\batch\*.doc) do cscript.exe //nologo //E:jscript SaveAsPDF.js "%%X" >> convert.log

SaveAsPDF.js调用Windows.exe转换文件。

SaveAsPDF.js invoke Windows.exe to convert a file.

Winword。 exe进程开始但直到我杀了它才关闭。

Winword.exe process starts but does not close till I Kill it.

有什么想法吗?

推荐答案

已解决:

已创建"桌面" Elevated CMD中的目录

Created "Desktop" directory in Elevated CMD

C:\ Windows \ System32 \ config \systemprofile \Desktop

C:\ Windows \SysWOW64 \ config \systemprofile \Desktop

C:\Windows\System32\config\systemprofile\Desktop
C:\Windows\SysWOW64\config\systemprofile\Desktop


这篇关于计划任务 - CScript错误:Windows脚本宿主的执行失败。 (0x80020102)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆