复制代码
- set objwmi=getobject("winmgmts:\\.")
- set colitems=objwmi.execquery("select * from win32_operatingsystem")
- for each i in colitems
- if instr(i.name,"XP") then
- msgbox "是xp系统"
- else
- msgbox "不是 xp系统"
- end if
- next
欢迎光临 批处理之家 (http://bathome.net./) | Powered by Discuz! 7.2 |