Alright, I got it working. Not by figuring out what the problem was, but by completely uninstalling 7zip, including configuration files, registry settings, etc. and removed all references to 7-Zip on my affected PC. I reinstalled, rebooted, and now the CMD parameters work as they should. Thanks to everyone for your time and for your ideas helping me with this. I appreciate it!
"match whole string only" 🤦♂️ I should've thought of that. 4 results turned up, all of them relating to 7zip. System search of 7z.* didn't bring up anything that wasn't related to 7zip or part of a larger filename, no exe's. EDIT: I tried another search checking "show hidden files, folders, and drives" in File Explorer Options and then found a folder called "InstallShield Installation Information" hidden in Program Files (X86) with two 7z.dll and two 7z.exe files. I renamed them both adding "OLD"...
Running where 7z from the root path gives me "INFO: Could not find files for the given pattern(s)."
No results that were not related to 7zip.
"match whole string only" 🤦♂️ I should've thought of that. 4 results turned up, all of them relating to 7zip. System search of 7z.* didn't bring up anything that wasn't related to 7zip or part of a larger filename, no exe's.
I'm running a CMD window from a folder containing several 7zip files. My intention is to get a list of the filenames contained in either a particular 7zip file or all 7zip files using wildcard *.7z I tried the CMD every which way: Using just 7z, then 7z.exe, then the full path to the exe. The full path is the only way that worked. Using 7z123.exe returned '7z123.exe' is not recognized as an internal or external command, operable program or batch file. I searched the Registry for "7z" (no .exe) and...
I searched the entire Registry for "7z.exe". There were only 11 entries, each one pointing to the exe in "C:\Program Files\7-Zip". I tried adding "C:\Program Files\7-Zip" to the Environmental Variables PATH before (both under User and System Paths) and STILL no luck, so I removed them.
7zFM.exe is listed in HKLM, but not HKCU. I checked the Registry of the PC where it works and it's the same.