# Ansible win\_robocopy gives error as "No Destination Directory Specified"

**URL:** <https://forum.ansible.com/t/ansible-win-robocopy-gives-error-as-no-destination-directory-specified/28756>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [October 10, 2018, 9:01am UTC](https://forum.ansible.com/t/ansible-win-robocopy-gives-error-as-no-destination-directory-specified/28756 "2018-10-10T09:01:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhijeet\_Kamble](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@Abhijeet\_Kamble](https://forum.ansible.com/u/Abhijeet_Kamble)\
**Post date:** [October 10, 2018, 9:01am UTC](https://forum.ansible.com/t/ansible-win-robocopy-gives-error-as-no-destination-directory-specified/28756/1 "2018-10-10T09:01:40Z")

</div>

Hi,

I am facing issues while using ansible with win\_robocopy , I face this issue when I specify any path with some space.

{  
“\_ansible\_parsed”: true,  
“src”: “C:\We bs\Service\”,  
“changed”: false,  
“\_ansible\_no\_log”: false,  
“dest”: “C:\backups\DSA-PDN\Service”,  
“cmd”: " C:\We bs\Service\ C:\backups\DSA-PDN\Service /purge /e",  
“recurse”: true,  
“return\_code”: 16,  
“purge”: true,  
“failed”: true,  
“flags”: null,  
“rc”: 16,  
“msg”: “ERROR : No Destination Directory Specified.”,  
“output”: [  
“”,  
“-------------------------------------------------------------------------------”,  
" ROBOCOPY :: Robust File Copy for Windows “,  
“-------------------------------------------------------------------------------”,  
“”,  
" Started : Wednesday, October 10, 2018 8:52:10 AM”,  
" Source : C:\We bs\Service" C:\backups\DSA-PDN\Service \purge \e\“,  
" Dest - “,  
“”,  
" Files : _._”,  
“\t “,  
" Options : _._ /DCOPY:DA /COPY:DAT /R:1000000 /W:30 “,  
“”,  
“------------------------------------------------------------------------------”,  
“”,  
“ERROR : No Destination Directory Specified.”,  
“”,  
" Simple Usage :: ROBOCOPY source destination /MIR”,  
“”,  
" source :: Source Directory (drive:\path or \\server\share\path).”,  
" destination :: Destination Dir (drive:\path or \\server\share\path).”,  
" /MIR :: Mirror a complete directory tree.”,  
“”,  
" For more usage information run ROBOCOPY /?",  
“”,  
" ",  
“\*\*\*\* /MIR can DELETE files as well as copy them !”  
]  
}

I dont know if i am doing anything wrong . Please help
