# percentage sign in raw command

**URL:** <https://forum.ansible.com/t/percentage-sign-in-raw-command/21654>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [June 3, 2016, 6:01am UTC](https://forum.ansible.com/t/percentage-sign-in-raw-command/21654 "2016-06-03T06:01:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ishan\_jain](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Post date:** [June 3, 2016, 6:01am UTC](https://forum.ansible.com/t/percentage-sign-in-raw-command/21654/1 "2016-06-03T06:01:13Z")

</div>

I am trying to add a key-value to %PATH% variable in windows and for that i am using a raw module. But when i use something like:

PATH=E:\jre;%PATH%

then i get error saying,

"%PATH% : The term ‘%PATH%’ is not recognized as the name of a cmdlet

I tried putting things in quote and there are no other special characters in my commands. I am not sure if special characters still needs to be escaped when inside “”. Any suggestions how to do this ?

---

<div class="post-metadata">

**Author:** ![Johannes\_Kastl](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Post date:** [June 3, 2016, 6:51am UTC](https://forum.ansible.com/t/percentage-sign-in-raw-command/21654/2 "2016-06-03T06:51:58Z")

</div>

I have no clue how this is for windows hosts, but normally I escape  
things with a \ in ansible...

Johannes
