简体   繁体   English

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

[英]Winzip hanging up in scheduled task batch file

I have a simple batch file as seen below that should extract a zip file to the root of E:. 我有一个简单的批处理文件,如下所示,该文件应将zip文件提取到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. 在计划任务中使用zip文件是否存在任何已知问题。 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. 实际上,在此任务运行的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%

尝试使用WinZip命令行支持插件

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

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%解决什么问题?

I realized after posting that the "bad" servers were all 64-bit. 发布后,我意识到“不良”服务器都是64位的。 I was running the 32-bit version of winzip. 我正在运行Winzip的32位版本。 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. 由于我所工作的公司没有看到购买任何软件的好处,因此我没有其他选择,只能开始使用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. 感谢您的回答,但看起来好像没有64位版本的Winzip ....我没有其他选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM