title: Unable to copy folders from FTP site?
body: <p>I am using the code below which successfully gets the files in the presentation directory but not the folders. Is there a way to get the folder and its contents as well? Maybe in powershell this can be done instead of a batch file? When the code below runs I am getting an access denied on the folders but the files copy fine? Any ideas?</p>
  
  <pre><code>@Echo Off
  Set _FTPServerName= 
  Set _UserName=
  Set _Password=
  Set _LocalFolder= C:\Temp
  Set _Filename=/Presentation
  Set _ScriptFile=ftp1
  :: Create script
  &gt;"%_ScriptFile%" Echo open %_FTPServerName%
  &gt;&gt;"%_ScriptFile%" Echo %_UserName%
  &gt;&gt;"%_ScriptFile%" Echo %_Password%
  &gt;&gt;"%_ScriptFile%" Echo lcd %_LocalFolder%
  &gt;&gt;"%_ScriptFile%" Echo binary
  &gt;&gt;"%_ScriptFile%" Echo prompt
  &gt;&gt;"%_ScriptFile%" Echo mget %_Filename%
  &gt;&gt;"%_ScriptFile%" Echo quit
  :: Run script
  ftp -s:"%_ScriptFile%"
  
  pause
  </code></pre>