Winzip挂起在预定的任务批处理文件中

时间:2022-04-19 02:22:48

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.

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

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.

在计划任务中使用zip文件是否存在任何已知问题。实际上,在这个任务运行的12个盒子中的3个盒子里,我确实遇到了同样的问题,但没有押韵也没有理由为什么有些服务器工作,有些则没有。

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%

4 个解决方案

#1


Try to use the WinZip Command Line Support Add-on.

尝试使用WinZip命令行支持加载项。

#2


what if you use 7-zip in command line?

如果你在命令行中使用7-zip怎么办?

#3


when you run the call from a command line, how do you specify the environment variables that you define in your batch? further, what does %CD% resolve to when you run your batch on a 'good' server vs a 'bad' server?

从命令行运行调用时,如何指定批处理中定义的环境变量?此外,当您在“好”服务器和“坏”服务器上运行批处理时,%CD%会解决什么问题?

#4


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.

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

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

谢谢你的答案,但它看起来没有64位版本的winzip ....我没有其他选择。

#1


Try to use the WinZip Command Line Support Add-on.

尝试使用WinZip命令行支持加载项。

#2


what if you use 7-zip in command line?

如果你在命令行中使用7-zip怎么办?

#3


when you run the call from a command line, how do you specify the environment variables that you define in your batch? further, what does %CD% resolve to when you run your batch on a 'good' server vs a 'bad' server?

从命令行运行调用时,如何指定批处理中定义的环境变量?此外,当您在“好”服务器和“坏”服务器上运行批处理时,%CD%会解决什么问题?

#4


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.

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

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

谢谢你的答案,但它看起来没有64位版本的winzip ....我没有其他选择。