what is the way to copy the entire directory from remote machine(windows) to my local machine(windows).
The methods i tried using in windows_batch resource
xcopy //machinename/foldername/* C:/ /s /e
xcopy \\machinename\foldername\* C:\ /s /e
i am getting an error saying invalid number of parameters
can some correct me out . ??
The way I solved this is using two ressources:
1) mount to mount the remote directory
2) remote_directory from the mount point to local point
Note that the mount ressource notifies itself to unmount at end of chef run to avoid mount points staying on the servers.
Ex with remote file: