When I try to fetch a directory with get "Path To\Directory\", I get the following error:

NT_STATUS_FILE_IS_A_DIRECTORY opening remote file Path To\Directory


(Using smbclient v3.6.23. The server is a computer running Windows 7 Home Edition.)

Per the smbclient manpage, you need to use the mget command, with a mask and recursion and prompt set. Then cd to the directory you want to get recursively:

smbclient '\\server\share'
recurse ON
prompt OFF
cd 'path\to\remote\dir'

smbclient '\\server\share' -N -c 'prompt OFF;recurse ON;cd 'path\to\directory\';lcd '~/path/to/download/to/';mget *'

If you need to authenticate to the server drop -N` and use the password setting on the connect command.