1

I'm trying to make an enemy attack function, but I have this problem

(
echo echo a wild %Enemy% Appears :O
)>Root\Enemies\AttackSystem.bat

But It just Replaces it as a variable... How do I fix that?

LeoDog896
  • 3,472
  • 1
  • 15
  • 40
  • 1
    Possible duplicate of [Ignore percent sign in batch file](http://stackoverflow.com/questions/1907057/ignore-percent-sign-in-batch-file) – aschipfl Mar 16 '17 at 14:59

1 Answers1

2
echo echo a wild %%Enemy%% Appears :O

Normally ^ "escapes" a character like | which has a special meaning to cmd and signals that it is to be interpreted as a normal character. The escape character for % however is %.

Magoo
  • 77,302
  • 8
  • 62
  • 84