Hey all

I am trying to write a simple BAT to map a printer resource for my XP workstation that runs at startup. when I try to access the printer via desktop shortcut the printer gives an access denied error.

If I map the printer to lpt1 it works correctly but access still denied.

the printer address is "lpt1 \\Server\printername"

\\Server is password protected so Ive tried mapping "* \\server" with the login in details but this gives an error67 - the network name cannot be found.

If I try mapping say "* \\server\foldername" with login details I get an error 87 parameter is incorrect, as if I had the wrong login details (which I don't)
I think this may be for the same reason that when I type \\server\foldername into explorer address bar I get 2 successive password gates instead of just the 1.

does anyone know How I can map just "* \\server" ?

thanks