JICGreg
Technical User
- Mar 14, 2007
- 34
The following code will work on my windows 2000 machine but not my vista machine:
oNet = createobject("WScript.Network")
oNet.SetDefaultPrinter("Phaser 8400N Color")
When I try to run it on the vista machine I receive the following error "OLE IDispatch exceptio code 0 from WSHNetwork Setdefaultprinter: There is no printer called "Phaser 8400N Color"
If I try this code on the vista machine
*oNet.SetDefaultPrinter("\\servername\Phaser 8400N Color")
the code executes fine but it then does not work on the win2000 machine.
Thanks for any help.
oNet = createobject("WScript.Network")
oNet.SetDefaultPrinter("Phaser 8400N Color")
When I try to run it on the vista machine I receive the following error "OLE IDispatch exceptio code 0 from WSHNetwork Setdefaultprinter: There is no printer called "Phaser 8400N Color"
If I try this code on the vista machine
*oNet.SetDefaultPrinter("\\servername\Phaser 8400N Color")
the code executes fine but it then does not work on the win2000 machine.
Thanks for any help.