# help about win\_find

**URL:** <https://forum.ansible.com/t/help-about-win-find/32455>\
**Category:** Ansible Developer\
**Created:** [March 13, 2020, 3:14pm UTC](https://forum.ansible.com/t/help-about-win-find/32455 "2020-03-13T15:14:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lorry\_Leveque](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@Lorry\_Leveque](https://forum.ansible.com/u/Lorry_Leveque)\
**Post date:** [March 13, 2020, 3:14pm UTC](https://forum.ansible.com/t/help-about-win-find/32455/1 "2020-03-13T15:14:30Z")

</div>

i’m trying to find one file into a folder with recursive option but it returns to result .  
when i put the exact path of the file , it sucess  
can someone help me 🙂  
thanks

below my success code

- name: “search folder to copy”  
win\_find:  
paths: C:\xXXXX\YYYY\1\Software  
patterns: “myZipfile.zip”  
use\_regex: no  
**recursive: yes**  
file\_type: file  
register: allfiles  
failed\_when: false

below the one which fails

- name: “search folder to copy”  
win\_find:  
paths: C:\xXXXX\YYYY  
patterns: “myZipfile.zip”  
use\_regex: no  
**recursive: yes**  
file\_type: file  
register: allfiles  
failed\_when: false
