WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Error Codes

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Percent Sign in Comment


Question:

I have come across this issue. In my comment section, i have a percent sign and when winbatch runs, it is reading the percent sign in the comment section. My comment section is as follows.
;Changing % from 15% to 20%
Now the winbatch message pops up with this error
error 3048: Substitution %Variable% not followed by a % (Use %% for %) 
any insight on why the compilor is reading the percent sign in the comment section would be helpful..

Answer:

All characters to the right of the semi-colon are considered comments, and are ignored. Except for percent-signs (%). If you choose to put a comment at the end of a line, that includes a percent sign, you must specify %%.
Article ID:   W15943
File Created: 2004:03:30:15:41:52
Last Updated: 2004:03:30:15:41:52