what does this mean /p?
this is the batch that I'm working with.
net use /p:y z: \\192.168.2.43\mercury
Main Topics
Browse All TopicsI need to write a batch file that maps a network drive but uses a different user name and password to log on to that network share.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
/P means persistent.
This means reconnect the share at the next logon.
But for that to work with a password you will also need to save the credentials.
So try this ...
NET USE Z: \\192.168.2.43\mercury password /USER:domain\username /SAVECRED /PERSISENT:YES
Replace password, domain and username with appropriate values ...
NET USE Z: \\192.168.2.43\mercury MrBlobby /USER:BBC\NoelEdmonds /SAVECRED /PERSISENT:YES
http://www.dameware.com/su
Are you sure there is a share called "dir" on the machine \\192.168.100.15 ?
Sorry, I'm joining the conversation kind of late, but I think the reason he's getting a "network path not found" error is because I don't think you can map a drive using an IP address: you have to use the computer name.
If the name doesn't resolve because it's not in DNS, you can just assign any name you please & add it, with the IP, to the HOSTS file on the computer you're running it from. The HOSTS file can be found here:
%SystemRoot%\system32\driv
The syntax of the line you would need to add it pretty simple:
192.168.1.100 example.local
127.0.0.1 sample.new
Alicia
Business Accounts
Answer for Membership
by: RQuadlingPosted on 2007-05-15 at 06:49:32ID: 19092703
Try
net use \\server\share password /USER:domain\username