![]() |
Kill session
Sometimes I get Access Denied errors when trying to move/rename/delete folders because there are open sessions on the folders or files in question. If I go to Computer Management|System Tools|Shared Folders and kill any relevant open sessions/files out there, that works fine; then I can do when I need to do. Is there a way to do this in VBP?
|
Searching on google for
computer management automate shared folders disconnect all sessions The cached link for the second result http://209.85.173.132/search?q=cache...=us&lr=lang_en Suggests two possibilities. VBScript (from a Run Script action): Code:
Set objConnection = GetObject("WinNT://computername/LanmanServer") net session \\computername /delete /y http://www.ss64.com/nt/net_share.html |
All times are GMT -5. The time now is 12:10 PM. |
Copyright © 1999-2023 Kinook Software, Inc.