locked
Net Use mapping RRS feed

  • Question

  • I have a program that will only export to the local machine. I am trying to write a batch file to move the file to a location in another domain where it can be imported to another program. When I run the individual commands from a command prompt on the machine it resides, they will run just fine. However, if I try to run the batch file from explorer or the command prompt I will get a system error 86 and the file will not run correctly. I'm not understanding why net use will work by typing the individual command on a command prompt but not through the batch file. Any help is appreciated. Thanks.

    net use t: \\domainShare\fileLocation /User:domain\username "password"
    xcopy "d:\staff\filestoTransfer\filename.csv" t: /Y
    net use t: /delete

    Wednesday, June 10, 2015 3:02 PM

Answers


  • PS C:\> net helpmsg 86
    The specified network password is not correct.


    -- Bill Stewart [Bill_Stewart]

    • Proposed as answer by Mike Laughlin Tuesday, June 30, 2015 7:42 PM
    • Marked as answer by Bill_Stewart Monday, July 13, 2015 3:38 PM
    Wednesday, June 10, 2015 3:24 PM