Ikelca
asked on
how to list and map network printer in Active Directory using java
hi,
is that possible to list network printers in AD and connect it to local machine when a button clicked?
I am wondering if this could be done in java. and if yes, can you please give me some ideas?
thanks
is that possible to list network printers in AD and connect it to local machine when a button clicked?
I am wondering if this could be done in java. and if yes, can you please give me some ideas?
thanks
You can use Runtime.getRuntime.exec("n et view \\\\print_server_name");
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
it seems that link has no answers either, net view or net use commands are OS dependent.
im wondering if there is any API that we can use.
im wondering if there is any API that we can use.
Java printing API does have a part which is called Printer discovery - maybe it will help:
http://java.sun.com/products/java-media/2D/forDevelopers/sdk12print.html
Stiil, I think in this API it will discover only local printer
ASKER
so i guess there is no way to implement this idea in java ?
Well, never say never, maybe someone will still come up with some idea
Probably, for now if you just check the system and do some system specific discovery - maybe it is more practical
Probably, for now if you just check the system and do some system specific discovery - maybe it is more practical
ASKER
it seems only you and me here lol~~
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
cant find working solution, decided to go with c# instead of java