Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 142
  • Last Modified:

Forcing connection to a network drive

I have a problem where I am checking a user defined path to make sure it is valid, if the path is a network drive that has become disconnected, how do I force the drive to reconnect?
0
jward1980
Asked:
jward1980
  • 2
1 Solution
 
SmallintCommented:
net use (driveletter): \\(machine)\(path) /user:(machine)\(user) password
0
 
SmallintCommented:
net use z: \\(machineneme)\c$ /user:(mahine)\(user) (password)

User must have proper rights.
0
 
jward1980Author Commented:
Thanks, great, much appreciated
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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