renameitem odd behavior?

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: 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%).

:info: Use Your Profile Or Signature
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.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Dustydog
Posts: 321
Joined: 13 Jun 2016 04:19

renameitem odd behavior?

Post by Dustydog »

This line of code (which renames a parent folder using the base name of the selected file) will run if the <curitem> is a text file or jpg…

Code: Select all

renameitem(gpc(,"base"), ".", "4","-001");
…but it will not run, "Access Denied", if the <curitem> is a music or movie file, though it works fine if you do the same command loaded with $variables and then de-sel[]; everything.

Any idea why? Threw me a bit as I tested the script I was working on with a text file.

***

I wonder if this is related to my problem with XY not letting go of a media file as I pass them to another program in the usual gui fashions, like a media tagger - a problem I mentioned a bit ago and told Don to give up on?

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: renameitem odd behavior?

Post by highend »

Tested with "Ellie Goulding - Love Me Like You Do.mp3" in a folder called "music",
"music" gets renamed accordingly...

What does e.g. LockHunter say to such a folder, that should be renamed?
One of my scripts helped you out? Please donate via Paypal

Dustydog
Posts: 321
Joined: 13 Jun 2016 04:19

Re: renameitem odd behavior?

Post by Dustydog »

Stepping through that single line to the point where it says "Access Denied", with the folder to be renamed also open in a Windows Explorer window, LockHunter says it's clear. I find the whole thing very odd.

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: renameitem odd behavior?

Post by highend »

Was that file previewed (by XY), processed (by a CFA) or anything like that before?
One of my scripts helped you out? Please donate via Paypal

Dustydog
Posts: 321
Joined: 13 Jun 2016 04:19

Re: renameitem odd behavior?

Post by Dustydog »

XY went through some restarts. I even did a reboot. (What's a CFA again?) And no, I don't believe I did any previews with them as I was intending on only using them to pull out metadata for a test script, but I hadn't gotten that far yet; I was only testing renameitem as I was going to combine some of the filename and some metadata to a parent folder rename, but I only tested a simple rename-from-child.

Didn't have preview pane open, no informational columns except size and count.

VLC is set as my default media program for both...? Only real background programs I have running that affect files are basic Windows antivirus (Win 10, Creator's, current mainstream patches), MalwareBytes, and "Everything" run as an Admin (lets go of external drives better, in my experience, than as a service, if you kill it first).

Are you on Win 10?

Running a Lenovo ThinkPad, which has been quite a stable machine. Files are on an external SSD which has always worked reliably and is my general work disk.

Baffles me that it'd be only for more complex media types. Do have MediaInfo installed, but it wasn't used on the files yet.

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: renameitem odd behavior?

Post by highend »

I would have disabled the antivirus and malwarebytes stuff to make sure they don't interfere

I tried Win 10 for ~3 months and was so disappointed, that I went back to my beloved
Windows Server 2012 R2 U3...
One of my scripts helped you out? Please donate via Paypal

Dustydog
Posts: 321
Joined: 13 Jun 2016 04:19

Re: renameitem odd behavior?

Post by Dustydog »

It's the size column. When I remove it, it shows clean.

Please fix, oh exalted developer, even if it isn't everybody.

admin
Site Admin
Posts: 67292
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: renameitem odd behavior?

Post by admin »

Works fine here. Cannot repro the issue.

Dustydog
Posts: 321
Joined: 13 Jun 2016 04:19

Re: renameitem odd behavior?

Post by Dustydog »

And yes, the script works without size column showing.

Dustydog
Posts: 321
Joined: 13 Jun 2016 04:19

Re: renameitem odd behavior?

Post by Dustydog »

It is, on my part, completely reproducible.

Dustydog
Posts: 321
Joined: 13 Jun 2016 04:19

Re: renameitem odd behavior?

Post by Dustydog »

Any debugging code possible?

Dustydog
Posts: 321
Joined: 13 Jun 2016 04:19

Re: renameitem odd behavior?

Post by Dustydog »

I like my blasted size column.

Dustydog
Posts: 321
Joined: 13 Jun 2016 04:19

Re: renameitem odd behavior?

Post by Dustydog »

This is definitely the problem I was having passing media files to renamer or tagger programs.

Dustydog
Posts: 321
Joined: 13 Jun 2016 04:19

Re: renameitem odd behavior?

Post by Dustydog »

ARGH! Locked again with no size column. Killing anti-V and Everything though it shows XY as the locking culprit.

Dustydog
Posts: 321
Joined: 13 Jun 2016 04:19

Re: renameitem odd behavior?

Post by Dustydog »

What does it seems to be double clicking up, then going back down. Showed clean on restart at first, position remembered, then when went up and down, showed locked by XY when focused.

Post Reply