Start menu - mediainfo.exe path problem with long names

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
gquiring
Junior Member
Junior Member
Posts: 27
Joined: 2003-02-07, 17:27 UTC
Location: Summerville, SC

Start menu - mediainfo.exe path problem with long names

Post by *gquiring »

I use an app called Mediainfo.exe which comes with the Codec packs. I use the start menu in TC 10.51 like this:

Command: C:\Program Files (x86)\K-Lite Codec Pack\Tools\mediainfo.exe
Parameters: "%p%n"
Start Path: "%p"

The problem is it does not work if anything with a path or name has spaces in it. How can fix this?
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Start menu - mediainfo.exe path problem with long names

Post by *Stefan2 »

Try this

Command: "C:\Program Files (x86)\K-Lite Codec Pack\Tools\mediainfo.exe"
Parameters: %P%N
Start Path:





 
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7012
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Start menu - mediainfo.exe path problem with long names

Post by *Horst.Epp »

Wrong parameters.

This button works fine also with spaces in the name

Code: Select all

TOTALCMD#BAR#DATA
"C:\Program Files (x86)\K-Lite Codec Pack\Tools\mediainfo.exe"
%P%N
C:\Program Files (x86)\K-Lite Codec Pack\Tools\mediainfo.exe
mediainfo


-1
Btw. if you have K-Lite installed there is Mediainfo already in the context menu of picture files.
So normaly no need for a button.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
User avatar
white
Power Member
Power Member
Posts: 5986
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Start menu - mediainfo.exe path problem with long names

Post by *white »

Leave Start Path empty. (special variable are not supported here and the default start folder is the active panel folder)
Use parameters: %N (lower case variable name %n means old 8.3 names which may or may not be available for your drive)
or: %P%N (include path if you like, probably not needed)

Double quotes are added automatically if the name contains space(s).
gquiring
Junior Member
Junior Member
Posts: 27
Joined: 2003-02-07, 17:27 UTC
Location: Summerville, SC

Re: Start menu - mediainfo.exe path problem with long names

Post by *gquiring »

Thank you, this works:

Command: "C:\Program Files (x86)\K-Lite Codec Pack\Tools\mediainfo.exe"
Parameters: %N
Start Path:
Post Reply