How to disconnect Network Drive


#1

Hi all , i am working with Mapping a drive and moving a file from the drive to local desktop but before Mapping i will have to disconnect the existing Mapped Drives otherwise the Bot would throw an error since there is a Drive already existing with same name, How can I disconnect the Drive ? There is no code for disconnecting drives, please help.

Thanks in advance.


#2

Have you tried command prompt?

net use B: /delete


#3

hey @shaileshpathak

In short just use this

net use /delete *

it will release all mapped drives from your system. even if some of them are hidden and opened in the explorer as well. Let me know the updates.

U can use Invoke PowerShell activity.

Regards…!!
Aksh


#4

Hey @aksh1yadav - used the same, its working !! Thanks :smiley:


#5

Yes, it worked . Thanks :smiley:


#6

Hello Team,
how to connect alredy mapped network drive,can you please help me on this .
Regards
Raj kumar