Custom Column script no longer working.

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Max_T
Posts: 19
Joined: 17 Sep 2019 15:15
Location: Windows 11 24H2 100%

Custom Column script no longer working.

Post by Max_T »

I created a custom column with a script to read video file codecs to make it easier for me to see which videos I've transcoded and which I haven't (because I transcode everything I download to x265).

This is the script I used, which I managed to figure out and get working from other parts from a similar script I've seen on here. It worked perfectly for my needs, but seemingly since I upgraded my Windows 10 to 11, it now stopped working. I don't know if it perhaps stopped working before that, as I haven't checked it for a few months.

I'm using XY version 27.10.0600

Code: Select all

$nsecs = "";
  
      if ($nsecs == "") {

          $mediaInfo = "C:\Users\Max_T\Documents\MediaInfo\MediaInfo.exe";

          $codec = regexreplace(runret("$mediaInfo --Inform=Video;%Encoded_Library% ""<cc_item>"""), "\n");

          return $codec;

}
EDIT: Just realised I should maybe include this, I don't know if anything here might be causing the issue.
Image
Last edited by Max_T on 11 Sep 2025 23:18, edited 1 time in total.

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

Re: Custom Column script no longer working.

Post by highend »

What does the column show, nothing?
What does the mediainfo command show if you execute it from a dos box?
One of my scripts helped you out? Please donate via Paypal

Max_T
Posts: 19
Joined: 17 Sep 2019 15:15
Location: Windows 11 24H2 100%

Re: Custom Column script no longer working.

Post by Max_T »

Yeah, the column just shows nothing.

When I run it from Powershell, it gives an error saying mediainfo.exe is not a recognized cmdlet.
When I run it from CMD, it works just fine.

I noticed before in my task manager, when I loaded the custom column, it would run a bunch of CMD processes, running mediainfo as it was processing the information. Now it doesn't do that any more. It's like it doesn't even try to execute the script.
Last edited by Max_T on 12 Sep 2025 10:16, edited 1 time in total.

phred
Posts: 676
Joined: 26 Dec 2021 02:10
Location: XY 64bit on Win10 at 100% from Boston USA

Re: Custom Column script no longer working.

Post by phred »

From Don (admin)...
Forum users who have their Windows version and screen scaling percentage in the location field of their profile will get priority support. And be sure to state your XY version number in the body of your post. No info in the location field? Be patient and Don will get to you after he takes care of those who have the proper info in the proper place.

Max_T
Posts: 19
Joined: 17 Sep 2019 15:15
Location: Windows 11 24H2 100%

Re: Custom Column script no longer working.

Post by Max_T »

phred wrote: 11 Sep 2025 23:10 From Don (admin)...
Forum users who have their Windows version and screen scaling percentage in the location field of their profile will get priority support. And be sure to state your XY version number in the body of your post. No info in the location field? Be patient and Don will get to you after he takes care of those who have the proper info in the proper place.
Thank you, I updated my information and added my version in the first message. I'm not in too much of a hurry for a fix. Admin can attend other more serious matters first.
I've also been trying to see if other things I changed may have affected it, by trying to revert the changes (the information found in this video, I don't know if that could maybe have had an effect, but so far it doesn't seem like it makes a difference https://www.youtube.com/watch?v=zW69MisrsWk)

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

Re: Custom Column script no longer working.

Post by highend »

Now it doesn't do that many more. It's like it doesn't even try to execute the script.
Why don't you just check that by returning <cc_item>?

The script works fine here with 27.10.0600 (on Windows 10) but I see no reason why it shouldn't run on 11...

Show the command you're executing in the dos box and it's output as a screenshot and as real text to be able to copy it
One of my scripts helped you out? Please donate via Paypal

Max_T
Posts: 19
Joined: 17 Sep 2019 15:15
Location: Windows 11 24H2 100%

Re: Custom Column script no longer working.

Post by Max_T »

highend wrote: 11 Sep 2025 23:48
Now it doesn't do that many more. It's like it doesn't even try to execute the script.
Why don't you just check that by returning <cc_item>?

The script works fine here with 27.10.0600 (on Windows 10) but I see no reason why it shouldn't run on 11...

Show the command you're executing in the dos box and it's output as a screenshot and as real text to be able to copy it
I'll be honest, I don't know how to run the command to get an output in terminal. The commands I ran previously was really just executing "mediainfo.exe".
I got the script commands from another script on this forum trying to achieve something similar, and then I just used context clues to adjust it to what I was trying to do.

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

Re: Custom Column script no longer working.

Post by highend »

Code: Select all

"C:\Users\Max_T\Documents\MediaInfo\MediaInfo.exe" --Inform=Video;%Encoded_Library% "C:\Videos\one of my video files, guess i have to take my own here.mp4"
One of my scripts helped you out? Please donate via Paypal

Max_T
Posts: 19
Joined: 17 Sep 2019 15:15
Location: Windows 11 24H2 100%

Re: Custom Column script no longer working.

Post by Max_T »

Code: Select all

"C:\Users\DVoid\Documents\MediaInfo\MediaInfo.exe" --Inform=Video;%Encoded_Library% "C:\Test_Video.mp4"
x264 - core 155 r2893 b00bcaf
Image

I know the username is different here than the script and examples I've given before, but this is the real username.

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

Re: Custom Column script no longer working.

Post by highend »

Now select that video file and run in XY e.g. from the address bar:

Code: Select all

text runret("""C:\Users\DVoid\Documents\MediaInfo\MediaInfo.exe"" --Inform=Video;%Encoded_Library% ""<curitem>""");
Output =?
One of my scripts helped you out? Please donate via Paypal

Max_T
Posts: 19
Joined: 17 Sep 2019 15:15
Location: Windows 11 24H2 100%

Re: Custom Column script no longer working.

Post by Max_T »

Same output.

Image

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

Re: Custom Column script no longer working.

Post by highend »

And in your custom column it does NOT work?

Code: Select all

return regexreplace(runret("""C:\Users\DVoid\Documents\MediaInfo\MediaInfo.exe"" --Inform=Video;%Encoded_Library% ""<cc_item>"""), "\r?\n");
One of my scripts helped you out? Please donate via Paypal

Max_T
Posts: 19
Joined: 17 Sep 2019 15:15
Location: Windows 11 24H2 100%

Re: Custom Column script no longer working.

Post by Max_T »

I replaced the entire script I had with only the line you just gave, and at least now I see MediaInfo running in task manager, but it's still not displaying anything in the column. Even if I replace Encoded Library with another category, like Format or CodecID, it doesn't show anything, but it does run in task manager.

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

Re: Custom Column script no longer working.

Post by highend »

Run a fresh instance (fresh; in the address bar, {ENTER} to execute it
Navigate in the C:\ folder
Configure the same custom column with only the one script line
Does it work there?
One of my scripts helped you out? Please donate via Paypal

Max_T
Posts: 19
Joined: 17 Sep 2019 15:15
Location: Windows 11 24H2 100%

Re: Custom Column script no longer working.

Post by Max_T »

Nope. Still doesn't display anything. Exact same behaviour.

Post Reply