Im making a windows batch file to run 7zip command line to compress a set of files. The part after /C in the script below needs to be quoted according to documentation. The issue comes from already having double quotes around the file paths. Do I need to \ escape certain quotes, use extra quotes, single quotes? Nothing I've tried has worked.
Here's the command part after /c:
/c "c:\program files\data\7-zip\7z" a "c:\program files\data\backups\test1.7z" "c:\program files\data\backups\test1.txt" -mmt1
The Whole Script (in case needed):
forfiles /p "c:\program files\data\backups" /m *.txt /c "c:\program files\data\7-zip\7z" a "c:\program files\data\backups\test1.7z" "c:\program files\data\backups\test1.txt" -mmt1