当前位置:编程学习 > 网站相关 >>

python下的wmi模块介绍之一:输出window注册表自启动项

#-*- encoding: utf-8 -*-  
   
Created on 2011-3-1 
  by hack7th 
   
import wmi  
  import time  
  c = wmi.WMI()   
 
for s in c.Win32_StartupCommand ():  
      print "[%s] %s <%s>" % (s.Location, s.Caption, s.Command) 


#-*- encoding: utf-8 -*-
 
Created on 2011-3-1
  by hack7th
 
import wmi
  import time
  c = wmi.WMI()

for s in c.Win32_StartupCommand ():
      print "[%s] %s <%s>" % (s.Location, s.Caption, s.Command)

补充:Web开发 , Python ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,