urbanmojo Posted June 2, 2011 Posted June 2, 2011 I am trying to map a drive like so: net use \\10.10.10.10\sharename Password /USER:Username /YES I get a 1219 error telling me that you can't map more than one drive to the same resource. (note I am mapping without a drive letter, because I am using in an SSIS package and I don't know what drive letter will be available at runtime) But if I try to disconnect the drive like this net use \\10.10.10.10\sharename /DELETE /YES It tells me it can't find the network resource. How can I be mapped to a drive that it can't find? How to get out of this situation? The user I am using to map the drive is a local user on the remote 10.10.10.10 box. Thanks Quote
ICTCity Posted June 2, 2011 Posted June 2, 2011 hi, The syntax is incorrect. Net use z:\\ip\share /persistent:yes From what I know you cannot map without assign a letter. Use Z which should be free ) Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
urbanmojo Posted June 2, 2011 Author Posted June 2, 2011 hi, The syntax is incorrect. Net use z:\\ip\share /persistent:yes From what I know you cannot map without assign a letter. Use Z which should be free ) You should be able to map without a drive letter--I've been using this SSIS package for a couple of years. Just now there is a problem. I could try mapping to a drive letter to see if that alleviates the problem, but any other ideas? The syntax is correct--not I'm not getting a syntax error. Quote
ICTCity Posted June 2, 2011 Posted June 2, 2011 the switch "/yes" at the means what? Anyway, before run that command, run net use without switches to check if there's a connection still there on the same resource. Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
Recommended Posts