Winzip 在计划任务批处理文件中挂起

发布于 2024-07-23 19:12:14 字数 514 浏览 5 评论 0原文

我有一个简单的批处理文件,如下所示,它应该将 zip 文件提取到 E: 的根目录。 zip 文件是有效的,我可以从命令行运行批处理文件。

它没有完成任务,而是继续通知我状态为“正在运行”。 问题是,它没有运行并且文件永远不会被解压缩。

该任务以域管理员身份运行,该域管理员已专门添加为框中的管理员。

在计划任务中使用 zip 文件是否存在任何已知问题。 事实上,我在运行该任务的 12 个机器中的 3 个上也遇到了同样的问题,但没有任何规律或理由可以解释为什么有些服务器可以工作,而另一些服务器则不能。

任何关于如何调试正在发生的事情或解决方案的想法都会非常有帮助。

这是我尝试运行的批处理文件。

SET RootPath=E:
SET WinzipLocation=E:\Program Files\WinZip

"%WinzipLocation%\winzip32" -e -o  %CD%\TestZipFile.zip %RootPath%

I have a simple batch file as seen below that should extract a zip file to the root of E:. The zip file is valid and I can run the batch file from the command line just fine.

Instead of completing the task, it continues to inform me that the Status is "Running". The problem is, it is not running and the file never gets unzipped.

The task is running as a Domain Admin that has been specifically added as an Admin on the box.

Are there any known problems with using zip files in Scheduled Tasks. I actually have this same problem on 3 out of the 12 boxes this task runs on, but there is no rhyme nor reason as to why some servers work, and others don't.

Any ideas on how to debug what is going on, or a solution would be very helpful.

Here is the batch file I'm attempting to run.

SET RootPath=E:
SET WinzipLocation=E:\Program Files\WinZip

"%WinzipLocation%\winzip32" -e -o  %CD%\TestZipFile.zip %RootPath%

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

皇甫轩 2024-07-30 19:12:15

如果在命令行中使用 7-zip 会怎样?

what if you use 7-zip in command line?

洋洋洒洒 2024-07-30 19:12:15

发帖后我意识到“坏”服务器都是 64 位的。 我运行的是 32 位版本的 winzip。 由于我工作的公司看不到购买任何软件的好处,所以我别无选择,只能开始使用 7-zip。 我没有测试任何性能提升或命中,但我不认为它无论环境如何都有效。

感谢您的回答,但看起来没有 64 位版本的 winzip....我没有其他选择。

I realized after posting that the "bad" servers were all 64-bit. I was running the 32-bit version of winzip. Since the company I work for doesn't see the benefit in purchasing any software, I had no other option but to starting using 7-zip. I have not tested for any performance increases or hits, but I do not that it works, regardless of the environment.

Thanks for the answers, but it looks like without the 64-bit version of winzip....i have no other options.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文