|
|
#1 |
|
Junior Member
Join Date: Aug 2014
Posts: 44
|
Rename command fails although there's no lock
Hi,
I noticed a while ago that in case I am trying to rename a folder that is currently open in Windows Explorer, the operation sometimes fails. In order to try and figure out what is happening, I created a small script that uses the LockesList plugin (to see if anything is really locked): code: I also have the following folder structure: \Original \config I then execute LockedList.exe in different scenarios.\test.txt
Here are the results: Case 1: LockedList returns "next" as no locks found, folder is renamed Case 2: LockedList returns "next" as no locks found, folder is renamed Case 3: LockedList displays Notepad.exe as a lock. I close it and it then returns "next". Rename failes (as folder Original\config displayed in Windows Explorer - since I opened the txt file) Case 4: LockedList returns "next" as no locks found, rename failes. Now I found this a bit "weird". Rename works ok if only the folder to be renamed is displayed in Windows Explorer but fails as soon as any subfolders thereof are displayed. Also, LockedList finds no locks and manual renaming also works. Any idea why this might happen? Thanks, Mircea |
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|