[Moderator (Sealeopard): Moved thread from 'Scripts' to 'Starters' forum due to lack of script in body]

I am trying to write a script to enumerate shared printers. I thought maybe VBS\WSH had a command to do this but I could'nt find it.
As a result I turned to kix to try to parse some registry strings to allow me to just get the printer name itself and then look in the registry under a different key to check the "Shared" registry key to see if it has a value (kind of a crappy way to do it but I can't seem to figure anything else out). I searched the site and checked out UDF's but I didn't see anything. I guess my question is this:

1.)Does anyone know any other way to enumerate shared printers or a script that would do this on a workstation.

2.)How do I parse a string using substr that looks like \\printserver\printer. I only want the value of the printer but the printserver and printer commands will be different (we have over 100 different print servers)size string on every workstation. Also need to include local shared printer too.

Thanks in advance.

[ 02. June 2003, 17:43: Message edited by: sealeopard ]