Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Enumerating Printers

I tested it on our network at work -
Your method appears better - on our network the Script didn't return the
proper port.


I don't have any file or print sharing enabled although I may have installed
part of it once as a test.

--
Regards,
Tom Ogilvy

"keepitcool" wrote in message
...

Never used the Wscript before.
I have broadband connect to the net. But no network.
And as a security and performance measure I have NOT installed
File and Printer Sharing. Moreever I disabled quite e few
services and I have a reasonably tight Firewall.

All things combined..

The Wscript Network object in itself creates ok.
EnumNetworkDrives works IF the WebClient service is not disabled.
I need FileSharing installed. (which I did for testing)
and enabled Printer sharing on 1 printer.
A Dfiferent error on EnumPrinters: 5 Invalid procedure call or argument

No Luck.





keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Tom Ogilvy" wrote:

I am not on a network and no error for me. I am connected to the
internet, so perhaps that is the difference, but I would think you are
as well.

I am happy with the conditional compilation the way it is.

--
Regards,
Tom Ogilvy


keepitcool wrote in message
...

Since I'n not on a network... ERROR
-2147023674 Method 'EnumPrinterConnections' of object 'IWshNetwork2'
failed




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
LABEL PRINTERS CFAVRE Excel Discussion (Misc queries) 0 August 4th 08 05:06 PM
Excel cannot find printers coopercat Excel Discussion (Misc queries) 0 November 30th 05 05:17 PM
List of available printers prizm1 New Users to Excel 3 June 12th 05 01:32 PM
List of Printers Bret Holle Excel Programming 1 September 27th 03 04:39 PM
Enumerating a multi-dimensional array Robert Stober Excel Programming 7 September 13th 03 12:28 PM


All times are GMT +1. The time now is 02:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"