Map drive bat error message

Posted on 2011-10-10
Last Modified: 2014-11-12
net use g: \\kacpa\gdrive
net use l: \\kacpa\gdrive\drake

my server's name is kacpa.  it is server 2008 i have this bat to map drives for term server users. it is called to run through thier start up menu by placing an entry in
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

it produces and error  85
the local device name is already in use.

how ever, the mapped drive DOES appear when they log on....

what does this error mean?
Question by:intelogent
    LVL 20

    Accepted Solution

    It is because the mapped drive already exist so try this:

    IF EXIST NET USE g: \\kacpa\gdrive /D
    IF EXIST NET USE l: \\kacpa\gdrive\drake /D
    net use g: \\kacpa\gdrive
    net use l: \\kacpa\gdrive\drake

    Open in new window

    LVL 6

    Assisted Solution

    Hendrik, didnt you mean:
    If exist G: net use G: /D
    If exist L: net use L: /D 

    Open in new window


    Author Closing Comment

    nicley done, and nicely corrected

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    There are many add-ons for Google docs, slides and sheets that can be extremely helpful in keeping your files organized and simple to use. Add-ons are installed into your Google docs, slides or sheets through Google's Add-On Store. One of my favorit…
    Know what services you can and cannot, should and should not combine on your server.
    This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
    This Micro Tutorial will demonstrate importing calendar invites from events such as webinars into your Google Calendar.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now