FG

How can I stop percentage expansion in a batch file?

Fresh3 days ago
Mar 15, 20268222 views
Confidence Score0%
0%

Problem

(This is on NT based Windows like 2000, XP, Vista, 7) On the command-line, the percentage characters are ignored: So it correctly downloads this file (each %20 becomes a space): But inside a batchfile, all the %20 are being interpreted as expanding parameter 2 (which is empty) resulting in this fil…

Error Output

wget "http://www.justitie.nl/images/Handleiding%20voor%20verwerkers%20persoonsgegevens_tcm34-3940.pdf"

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I stop percentage expansion in a batch file?

Low Risk

Double the percent sign:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment