Go Premium for a chance to win a PS4. Enter to Win

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

net use command sometimes hangs

We are running Oracle's ERP suite.  For one task, we have it spawn a bat file.  This file does a net use to map a drive, copies a file and demaps the drive.

Sometimes, the net use command just hangs and eventually has to be killed.  Always works from the command line.  Any suggestions on what could cause it to hang sometimes and other times work?
0
jbeckstrom
Asked:
jbeckstrom
1 Solution
 
anil_uCommented:
Not a lot of info to work with here but the cause could be the network - it cannot map the drive and continues to try to connect.
When the network or remote host is fine, it connects successfully.

You could use the /persistent switch to keep the drive mapped
0
 
jbeckstromAuthor Commented:
That is what we elected to do.  Just leave the drive mapped instead of mapping/demapping it.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

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