Chinaunix首页 | 论坛 | 博客
  • 博客访问: 535499
  • 博文数量: 53
  • 博客积分: 6801
  • 博客等级: 少将
  • 技术积分: 1575
  • 用 户 组: 普通用户
  • 注册时间: 2004-10-04 11:00
个人简介

:)

文章分类

全部博文(53)

文章存档

2010年(4)

2009年(16)

2008年(33)

分类: WINDOWS

2008-07-07 14:38:04

On Error Resume Next
Set WshNetwork = WScript.CreateObject("WScript.Network")
'Add the network printer 1
WshNetwork.AddwindowsPrinterConnection "\\192.168.1.2\hp1210"

'Default printer1
WshNetwork.SetDefaultPrinter "\\192.168.1.2\hp1210"

阅读(1397) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~