[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

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

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.
0
gumbert
Asked:
gumbert
  • 2
1 Solution
 
jmiller47Commented:
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:

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

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

NET USE [/PERSISTENT:{YES | NO}]

An example for mapping \\server1\files to the H drive would be:
NET USE H: \\SERVER1\FILES

I hope this helps.

0
 
jmiller47Commented:
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.

Thanks

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.

0
 
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.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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