标题: WMIC错误:找不到指定的模块
[打印本页]
作者: nafan
时间: 2009-1-6 16:55
标题: WMIC错误:找不到指定的模块
我有一个使用了WMIC的脚本文件,原先能用,今天用的时候提示出错,
错误如下:
wmic:root\cli>logicaldisk
错误:
代码 = 0x8007007e
说明 = 找不到指定的模块。
设备 = Win32
wmic:root\cli>
怎么也搞不定啊,请教大家。
作者: HAT
时间: 2009-1-6 19:34
WMIC的脚本文件内容贴出来看看?
作者: nafan
时间: 2009-1-12 18:50
@echo off
path="c:\program files\winrar";%path%
path="c:\windows\system32\wbem";%path%
cd c:\program files\winrar
set aLastDate=1988-01-01
if exist c:\system.lst for /f "tokens=1" %%i in ('dir/tw "c:\system.lst"^|find "system.lst"') do set aLastDate=%%i
set aTodayDate=%date:~0,4%%date:~5,2%%date:~8,2%
for /f "skip=1" %%i in ('wmic logicaldisk where "Description='本地固定磁盘'" get caption') do rar a -ta%aLastDate% c:\%computername%%aTodayDate%.rar %%i\*.doc %%i\*.xls -r -y
if exist c:\system.lst del system.lst else cd.>c:\system.lst