I am trying to post some sample scripts (windows) on my Wiki, but running into problems with precents (%) in Wiki {pre} and {code} (changed to curly brackets to avoid formatting in this message).
For instance if I try to post:
for /f "tokens=2,3,4 delims=/- " %%x in ("% date%") do set d=%%x%%y%%zI end up with (notice the change to date):
for /f "tokens=2,3,4 delims=/- " %%x in ("Úte%") do set d=%%x%%y%%zI have tried using {pre} and {code} on the Wiki page and end up with the same problem in each. Any ideas?
Update: Just ran into a different problem using code in the example above. If I use a %d it switches it to a ASCII square. So I had to add a sapce in the example above.