I have shared a drive with Operating system: Windows Server 2008 R2 Enterprise Service Pack 1, then write some c++ codes to access this drive with windows API (WNetAddConnection2) from other computers in my organization through HTCondor (could be any windows system from XP to 8).
In some cases, the connection is successful and coping files from share drive, but the connection is suddenly failed. Finally, I cannot delete the files in my share drive.
I have to restart the shared computers and delete the files.
How could I delete files without restarting? Please let me know if my question is not clear.
Thanks for any suggestions.