Mapped Drives (Full Version)

All Forums >> [Web Development] >> Computer Software and Hardware issues



Message


carrie -> Mapped Drives (10/4/2005 10:55:06)

Hi all,

I have to have a drive mapped in order to use a shared data resource for a program.
I can map the drive just fine in my profile, but when a different user logs in, I have to walk them through mapping the drive all over again.
Is there any way to map a drive on a pc and have it appear in every future user's profile, without them having to map it all over again?

Carrie




rdouglass -> RE: Mapped Drives (10/4/2005 11:40:22)

You could create a batch file that you could include at startup. Something like:

net use F: \\MyServer\MyVolume

That help any?




carrie -> RE: Mapped Drives (10/4/2005 11:58:07)

Yes, I did also find that answer, however the mapped drive has a space in the folder name. I think that's why my script is not working.

I can't take the space out of the folder name, because some users already have the drive mapped in their profiles. What is the proper syntax for this line?:
net use Q: \\CBR2\office1\Aris Data /p:n




rdouglass -> RE: Mapped Drives (10/4/2005 12:38:34)

quote:

net use Q: \\CBR2\office1\Aris Data /p:n


Don't you just quote the URC?

net use Q: "\\CBR2\office1\Aris Data" /p:n




carrie -> RE: Mapped Drives (10/4/2005 14:03:52)

I wish that would have worked, but it didn't. Seemed to easy.
Any other ideas?

Carrie




Giomanach -> RE: Mapped Drives (10/4/2005 14:49:38)

net use Q: \\CBR2\office1\Aris Data\ /p:n

With your line, its looking for a file called Aris Data, not the folder :)

<edit>
As good and as old as Command Prompt my be...it also doesnt recognise spaces in command lines at the end, so really...what the line you have would look for is \\CBR2\office1\Aris

Yours
An Old DOS user
</edit>




carrie -> RE: Mapped Drives (10/5/2005 9:46:54)

Thank you so much! It looks like it should work, but now I'm getting system error 1326, unknown username or bad password.
I'm logging in to an account with administrator rights. I don't understand.




carrie -> RE: Mapped Drives (10/5/2005 10:18:26)

I actually solved the problem with this line: net use Q: "\\cbr2\Office1\Aris Data" /p:n
I don't know why it was giving me a pwd problem before, but it works now, & I'm happy [:D]




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625