Is it possible to enter a windows share by including the username and password in the string?

Czar

Lifer
Oct 9, 1999
28,510
0
0
Net use works ofcorse but only by mapping a drive, but I'd like to access the share directly, is there a way to do this?
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
You don't have to use "net use" to map a drive. If you omit the drive letter portion of the command, you can simply use it to cache your credentials for accessing the share directly.
 

Netopia

Diamond Member
Oct 9, 1999
4,793
4
81
Is this a resource that you use often? Assuming XP, you could just go to user accounts and then go to your account and then to "manage my network passwords". Put in the server and what username and password you want, and then whenever you connect to that machine, it will pass those credentials.

I use this A LOT to connect to Samba shares on Linux and OS-X machines from my XP box.

Oh, and just like MrChad said, if you are going to use "net use", you can do so with a syntax similar to:

net use \\server (or \\server\share) and omit the drive letter.

Joe
 

Czar

Lifer
Oct 9, 1999
28,510
0
0
ah good solutions, both of them :)

its for one of the programmers at work

Just what I was looking for, thanks :)