Escape percent in bat file

Two %% equals to one %. That’s right (but only in a script, not directly in the cmd), no need to use the escape operator ^.

But you are missing the agrupation operator ). That’s the problem; the IF closes when it finds the ) at your command.

Use this:

rasdial sl employee1 K%%%%Pxev3=^)g:{#Swc9

Leave a Comment