Jump to content
Forum²

Recommended Posts

Posted

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

Posted

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 ;)

--------------------------------------------------------

Tu peux aussi crire en franais.

Du kannst auch auf Deutsch schreiben.

Puoi scrivere anche in italiano.

--------------------------------------------------------

Posted

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.

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

--------------------------------------------------------

Tu peux aussi crire en franais.

Du kannst auch auf Deutsch schreiben.

Puoi scrivere anche in italiano.

--------------------------------------------------------

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...