Yeah, I had those two lines at the beginning. setlocal enableelayedexpansion chcp 65001 > nul Maybe that's what caused the problem.
I don't think I've changed anything in the system. I checked (ran) this cmd file on two systems: Windows 11 Eng and Windows Server 2016. The result is the same everywhere. maybe the command "chcp 65001" in the CMD file has an effect
this option worked for me (use ^^) "C:\Program Files\7-Zip\7z.exe" a "C:\1C\BackUp\1c_bases_2.0_2024-08-10_TEST.7z" "C:\1C\1c_bases 2.0\base.1CD" -xr^^!*lgp
On the command line, this command works without error "C:\Program Files\7-Zip\7z.exe" a "C:\1C\BackUp\1c_bases_2.0_2024-08-10_TEST.7z" "C:\1C\1c_bases 2.0\base.1CD" -xr!lgp The command gives an error when run from a CMD file Command Line Error: Incorrect wildcard type marker rlgp how do I fix it?