Windows 7 Pro and bat files
I am running a bat file that stops part way through with the message "The password is invalid for <computer name>\Office$\Other. It will not continue until I press enter. We want it to continue without having to press enter as it is a log in to mapped drives on the server used by several people. Here it the file: REM Map Network Drive script REM V1.2 net use * /d /yes TIMEOUT /T 3 net use h: \\computer name\Personal$\%username% /USER:FILESERVER\%username% net use m: \\computer name\Plant$\Molding /USER:FILESERVER\%username% net use n: \\computer name\Plant$\Assembly /USER:FILESERVER\%username% net use o: \\computer name\Office$\Other /USER:FILESERVER\%username% net use p: \\computer name\Office$\Public /USER:FILESERVER\%username% copy p:\DesktopMessages\PhMessages.txt c:Desktop\ The error message stops after the "net use o" line with the message. It only stops on a Windows 7 computer it workd fine on Windows XP. Again, how do we get the bat file to continue without having everyone required to press enter? Thank you.
September 14th, 2012 3:12pm

Hi, The error message indicate that there are something wrong with your logon credentials. You can consider the solution what be mentioned from the link below: http://www.bootix.com/support/problems_solutions/the_password_is_invalid_for_server_share.html Hope this helps.Spencer TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
September 18th, 2012 5:25am

Hi, The error message indicate that there are something wrong with your logon credentials. You can consider the solution what be mentioned from the link below: http://www.bootix.com/support/problems_solutions/the_password_is_invalid_for_server_share.html Hope this helps.Spencer TechNet Community Support
September 18th, 2012 5:26am

I'm sorry but I wasn't clear enough. In this case the person does not have access to that mapped drive, therefore the error message "The password is invalid" is shown. In Windows XP Pro the bat file continues on but in Windows 7 Pro it hangs until you hit enter. I need the bat file to accept there is an error and continue on to the next line without having to hit enter.
Free Windows Admin Tool Kit Click here and download it now
September 20th, 2012 4:51pm

Hi, I would like suggest you post the issue to Windows Script Forum for further help. Thank you for understanding.Spencer TechNet Community Support
September 20th, 2012 10:16pm

Hi, I would like suggest you post the issue to Windows Script Forum for further help. Thank you for understanding.Spencer TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
September 20th, 2012 10:16pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics