"Cannot access file because it is being used" when renaming
Forum rules
READ THIS AND DO IT!!!
Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
READ THIS AND DO IT!!!
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
-
elqasar2
- Posts: 255
- Joined: 27 Oct 2017 14:04
- Location: Win 11, 100% scaling, v27.20.0700
"Cannot access file because it is being used" when renaming
Sometimes I rename files according to something I can see in their content, like a date or time (For example, to open a bank statement to find out what month it is for). Up until recently I'm sure it used to be possible to open a file in an external program, rename that file in-line in XYplorer and then before hitting Enter in the inline rename, close the file in the external application. XYplorer would then tolerate that brief time period when the other program was closing the file and then do the rename, without any error. I did this many times with success in the past. But this has stopped working in some recent version of XYplorer. Now when I try to do that, there is no tolerance. As soon as I hit close in the external application XYplorer immediately complains that it 'Cannot Rename' and that 'The process cannot access the file because it is being used by another process". Is it possible that the recent change can be reverted?
-
highend
- Posts: 14993
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: "Cannot access file because it is being used" when renaming
That change came with v22.10.0006
One of my scripts helped you out? Please donate via Paypal
-
admin
- Site Admin
- Posts: 66634
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: "Cannot access file because it is being used" when renaming
When files are renamed (not folders) I did not change the logic in v22.10.0006, but just the error message. That does not explain the issue.
@ elqasar2: Are you sure it worked differently before v22.10.0006? (You can check an earlier version from the freezer: https://www.xyplorer.com/freezer.php)
@ elqasar2: Are you sure it worked differently before v22.10.0006? (You can check an earlier version from the freezer: https://www.xyplorer.com/freezer.php)
FAQ | XY News RSS | XY X
-
highend
- Posts: 14993
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: "Cannot access file because it is being used" when renaming
It does, because the error message comes directly after leaving the in-line rename e.g. by clicking on the window that has this file open With v22.10.0005 it tries to rename the file first which gives you a kind of grace timeWhen files are renamed (not folders) I did not change the logic in v22.10.0006, but just the error message. That does not explain the issue.
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal
-
admin
- Site Admin
- Posts: 66634
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: "Cannot access file because it is being used" when renaming
Thanks, got it. Next beta... 
FAQ | XY News RSS | XY X
-
highend
- Posts: 14993
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: "Cannot access file because it is being used" when renaming
Yeah, works as before with v22.30.0101
One of my scripts helped you out? Please donate via Paypal
-
elqasar2
- Posts: 255
- Joined: 27 Oct 2017 14:04
- Location: Win 11, 100% scaling, v27.20.0700
Re: "Cannot access file because it is being used" when renaming
Thank you for fixing this in 22.30.0101
XYplorer Beta Club