中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-08-11 03:37
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » WMIC错误:找不到指定的模块 查看 629 回复 2
楼 主 WMIC错误:找不到指定的模块 发表于 2009-01-06 16:55 ·  中国 北京 鹏博士BGP
初级用户
积分 22
发帖 21
注册 2008-11-13 13:44
17年会员
UID 130844
性别 男
状态 离线
我有一个使用了WMIC的脚本文件,原先能用,今天用的时候提示出错,
错误如下:
wmic:root\cli>logicaldisk
错误:
代码 = 0x8007007e
说明 = 找不到指定的模块。
设备 = Win32
wmic:root\cli>

怎么也搞不定啊,请教大家。
2 发表于 2009-01-06 19:34 ·  中国 重庆 电信
版主
★★★★★
积分 9,023
发帖 5,017
注册 2007-05-31 19:39
19年会员
UID 89899
性别 男
状态 离线
WMIC的脚本文件内容贴出来看看?
3 发表于 2009-01-12 18:50 ·  中国 北京 鹏博士BGP
初级用户
积分 22
发帖 21
注册 2008-11-13 13:44
17年会员
UID 130844
性别 男
状态 离线

@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
论坛跳转: