• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 638
  • Last Modified:

batch login

Hello,

I am trying to get a batch file to login to a network drive with a special username / password.

This is what I have

echo y | net use g: /delete
net use g: \\rtb2003\apps
net user scc
net password ****

it isnt working for some reason. Any help would be great.

Thanks
Matt
0
MattBamm
Asked:
MattBamm
  • 2
1 Solution
 
fluk3dCommented:
net use w: \\myserver\fileshare /user:MyID MyPassword
0
 
GO-87Commented:
Try:
echo y | net use g: /delete
net use g: \\rtb2003\apps  ****  /user:scc
 
0
 
MattBammAuthor Commented:
Thanks
0
 
GO-87Commented:
Thank you for the points, Matt
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now