Batch File in Windows CMD mode : Using % symbol

tolong1

Member
Joined
Dec 15, 2017
Messages
134
Reaction score
16
Hello I have a batch file with content as follows

-------------------------------- CONTENT OF BATCH ----------------------
REM Coderun.bat

CodeX %1.TXT -strip -interlace -quality 85% %1.RPT
------------------------ END OF CONTENT -------------------------------

Aboce file Coderun.bat will take command line argunent (%1 i.e file ) with extension .TXT and process and deliver fcommand line argument (%1 i.e file).RPT

My problem is 85% is being interpretted by windows and giving error. 85% is fixed value we should pass. 85% should be not be used as 85th argument.

How do I code?

Thanks
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top