How to Logout from a Windows Shared Folder

network-shareswindowswindows xp

On my Windows XP, I am connected to a network shared folder on another Windows XP machine. I access the shared folder through UNC path, e.g.:
\Server\shared_folder1\
When I access it first time, it asks for login credentials; but second time onwards, it opens automatically without showing login dialog box (assuming the same credentials). But I need to use a different credential to access the same shared folder. How can I logout from the shared folder which I have already accessed in the current Windows session without restarting the system?

Best Answer

You can goto the command line and remove the shared drive:

net use /delete s:

Then you can reconnect as needed:

net use /persistent:yes s: \\server\dir
Related Question