Forum Moderators: open

Message Too Old, No Replies

How do you link a UNC share?

Need to provide a link on a web page to a shared printer

         

ndjp

4:12 pm on Nov 6, 2002 (gmt 0)

10+ Year Member



Unfortunately you can't just do an href to \\computer\sharedprinter, I've also tried file:////computer/sharedprinter and file:///\\computer\sharedprinter. Any ideas?

g1smd

9:58 pm on Nov 6, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I don't think you can do this at all.

What is it you want to achieve? What will clicking the link actually do for a user? Please explain it from that point of view and people here can provide suggestions.

ndjp

10:05 pm on Nov 6, 2002 (gmt 0)

10+ Year Member



Sure.

We have four shared printers in our corporate network. If you access any of these shares (say \\computer\printname) it will ask you if you want to setup the printer (this is the nature of Windows 2000). I'm designing an Intranet that I would have liked to have just provided those links so one could click and wala, it asks if you want to set it up or brings up the printer queue window if you already have it installed. It's nothing more than a convenience.

dingman

10:45 pm on Nov 6, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I worked for a short miserable while at a place that did this, so I know it's possible. Have you tried just using 'href="\\server\sharename"', no protocol?

<added> *smack* yes, you have, you said so in your first post. </added>

ndjp

12:18 am on Nov 7, 2002 (gmt 0)

10+ Year Member



Haha...

It will work if it's a shared folder, but not if it's a printer. Don't ask me, I just work here.

BTW, thanks for fixing the subject whoever did it :)

sun818

1:12 am on Nov 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



How about referncing a batch file that contains:

net use lpt1 \\server_name\printer_name

(btw, I think its voila not wala.)

dingman

4:14 am on Nov 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



(btw, I think its voila not wala.)

Indeed. It's a word borrowed from French, and in turn derived from two French words which would translate as "see there" or "look there". It took me several seconds to figure out that "wala" meant "voila".

(I'll distract you from my lack of knowledge of Windows by showing off my random tidbits of etymology.(Not to be confused with entymology, of which I know even less.))

The 'net use lpt1 \\server\printer' approach looks good as long as there aren't too many options for printers, so that a separate port number can be assigned each one. I'm not sure what happens if you try to redirect a port that is already directed to another printer, but replacement of the mapping would not suprise me in the least.

ndjp

1:03 pm on Nov 7, 2002 (gmt 0)

10+ Year Member



No dice guys. The net use command works but it does not work quite the same as when you run the UNC share. It opens a connection, but it does not prompt to install the drivers and setup the printer.

sun818

4:07 pm on Nov 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Although I encourage you to continue investigating, I doubt the use of the web for these kinds of activities are well integrated. It would be a big security issue if the browser could. Perhaps another idea would be a create an EXE program that would perform the adding of the UNC share and place that EXE as a link on the Intranet.