troubleshooting Question

Automating a step in a batch file.

Avatar of ddantes
ddantesFlag for United States of America asked on
NetworkingWindows OSWindows 7
6 Comments1 Solution17 ViewsLast Modified:

Running Windows 7 32-bit, I have a batch file in the Startup folder, which maps a network drive (V:) to Windows Explorer.  This is necessary, because the drive is a shared folder within a N.A.S.  Here is the batch file code:

net use V: \\V:\Data
net use V: \\DiskStation3\Data

Sometimes, after rebooting, the batch file won't complete without user interaction.  A question appears in the command window:  "V: has a remembered connection to \\Diskstation-3\Data.  Do you want to override the remembered connection?"

The answer is "no", and I'm wondering if there is code which can be added to the batch file to automate that response, if the question appears?

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros