When I open a file in n++ and try to delete its parent folder, or even just open and close the file in the latest version (4.3), windows (xp here) complains that it cannot delete the file as "It is being used by another person or program". This bug has been in n++ for the last few releases and I always have to close n++ to delete the folder. This isn't always what I want to do though, because I need to keep a certain level of undo which would be lost.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When a document is closed, the current directory still points to that of the now closed file. Of course, the current directory should be updated to reflect the path to the now active document.
This can be checked by pressing CTRL+O to open a file. It opens the path to the closed file.
A workaround is to switch manually to another document, so the current directory _will_ be updated. Check again by pressing CTRL+O or selecting Save Me As... The current directory should now be updated, that is, if Remember last operation directory is unchecked.
When a file is closed, NP++ should "remove" all references to it. It should close the file handle, and it should update the current directory to the now active document.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Are you sure that's NP++, and not one of the plugins? The Explorer and Light Explorer plugins seem to be more likely candidates.
In any case, I just tried but was unable to reproduce the results. I created a folder and saved a file in it. I opened the file with NP++, then closed the file. I was able to then delete the folder without problem, whether it still had the now-closed file or whether I first deleted the file, deleting the folder worked fine. I tried the experiment with and without plugins, and the folder deleted without trouble both ways.
Regards.
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I often encounter this problem.
I don't know if it happens every time.
Unlocker says that notepad++ locks the directory (or the file).
I'll try with v1.3 and with or without plugins when I came back from Paris. ("came", "come" ? I don't know, after all I'm french !)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I open a file in n++ and try to delete its parent folder, or even just open and close the file in the latest version (4.3), windows (xp here) complains that it cannot delete the file as "It is being used by another person or program". This bug has been in n++ for the last few releases and I always have to close n++ to delete the folder. This isn't always what I want to do though, because I need to keep a certain level of undo which would be lost.
When a document is closed, the current directory still points to that of the now closed file. Of course, the current directory should be updated to reflect the path to the now active document.
This can be checked by pressing CTRL+O to open a file. It opens the path to the closed file.
A workaround is to switch manually to another document, so the current directory _will_ be updated. Check again by pressing CTRL+O or selecting Save Me As... The current directory should now be updated, that is, if Remember last operation directory is unchecked.
When a file is closed, NP++ should "remove" all references to it. It should close the file handle, and it should update the current directory to the now active document.
Are you sure that's NP++, and not one of the plugins? The Explorer and Light Explorer plugins seem to be more likely candidates.
In any case, I just tried but was unable to reproduce the results. I created a folder and saved a file in it. I opened the file with NP++, then closed the file. I was able to then delete the folder without problem, whether it still had the now-closed file or whether I first deleted the file, deleting the folder worked fine. I tried the experiment with and without plugins, and the folder deleted without trouble both ways.
Regards.
Greg
I often encounter this problem.
I don't know if it happens every time.
Unlocker says that notepad++ locks the directory (or the file).
I'll try with v1.3 and with or without plugins when I came back from Paris. ("came", "come" ? I don't know, after all I'm french !)