how to map a network drive from ms-dos?

    i want to know if there is a command to map network drives from the commandp prompt. or if i may map the network drives with a .bat file or something like that. even in windows.
Who is Participating?
Joel MillerDevOps EngineerCommented:
Yes, you may do that with a batch file even in Windows.

Use the following command:
NET USE {drive letter}: \\{computername}\{sharename}

The syntax of this command is:

[devicename | *] [\\computername\sharename[\volume] [password | *]]
        [/USER:[dotted domain name\]username]
        [/USER:[username@dotted domain name]
        [[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME


An example for mapping \\server1\files to the H drive would be:

I hope this helps.

Joel MillerDevOps EngineerCommented:
I am really glad that worked for you, but can you please let me know why a "B" was given for a grade? This answer seems to be exactly what you were looking for. The answer was given with in 16 minutes. And it seems to be very complete. You may just be unaware of the grading curve here at Experts-Exchange. I posted the grading information below. Please let me know, and if you need any additional information on this question, please free to let me know also.


How Do I Know What Grade to Give?
Although we use an A-D scale here at Experts Exchange, it works differently than, say, school grades. If one or more Experts' proposals are accepted as answers, they should usually be given an A or B grade, since they have taken the time to provide you with a working solution. If a possible solution is incomplete - ask for clarification or details before accepting the answer and grading it. People should not be given lower grades because of incorrect grammar or because you just accepted their answer or comment to close the question. Keep in mind, your question and any follow-up comments should be focused so that there can be a specific answer. The following is a good guideline to follow when grading:

A: The Expert(s) either provided you with a thorough answer or they provided you with a link to information that thoroughly answered your question. An "A" can also be given to any answer that you found informative or enlightening beyond the direct question that you asked.

B: The Expert(s) provided an acceptable solution, or a link to an acceptable solution, that you were able to use, although you may have needed a bit more information to complete the task.

C: Because Experts' reliability are often judged by their grading records, many Experts would like the opportunity to clarify if you have questions about their solutions. If you have given the Expert(s) ample time to respond to your clarification posts and you have responded to each of their posts providing requested information; or if the answers, after clarification, lack finality or do not completely address the issue presented, then a "C" grade is an option. You also have the option here of just asking Community Support to delete the question.

Remember, the Expert helping you today is probably going to be helping you next time you post a question. Give them a fair chance to earn an 'Excellent!' grade and they'll provide you with some amazing support.

gumbertAuthor Commented:
sorry, jmiller47 i didn´t know the way of grading an answer, but if i could change que result please let me know, and i will do it, and sorry again.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.