GaetanoCarlucci / download_files

This PowerShell function copies a folder hosted remotely through http.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Power shell file downloader

This PowerShell function copies a folder hosted remotely through http.

INPUT PARAMETERS

  • $source: The url of folder to copy, with trailing /, e.g. http://website/folder/
  • $destination: The folder to copy $source to, with trailing \, e.g. D:\CopyOfStructure\

OUTPUT PARAMETERS

  • Return: None

Usage

  • Download the file download.ps1 in a directory.
  • Open the PowerShell in the same directory.
  • Run:
. .\download.ps1
Copy-Folder http://website/folder/ D:\CopyOfStructure\

About

This PowerShell function copies a folder hosted remotely through http.


Languages

Language:PowerShell 100.0%