Using Powershell you can copy file fron one location to another location.
Here we will see three scenario's
Example
# Here I define the folders and the extensions to look at.
$folder1 = ls "C:\powershell-scripts\from\" -recurse -include "*.pdf"
$destinationfolder = "C:\powershell-scripts\to\"
Copy-Item -Path $folder1 -Destination $destinationfolder
Example
# Here I define the folders and the extensions to look at.
$folder1 = ls "C:\powershell-scripts\from\" -recurse -include "*.pdf"
$destinationfolder = "C:\powershell-scripts\to\"
Copy-Item -Path $folder1 -Destination $destinationfolder
Example
# Here I define the folders and the extensions to look at.
$folder1 = ls "C:\powershell-scripts" -recurse -include "*.pdf"
$destinationfolder = "\\DNYANU-PC\SharedPath"
Copy-Item -Path $folder1 -Destination $destinationfolder
Example
$SourceDirectory = 'C:\powershell-scripts\from'
$DestinationDirectory = 'C:\powershell-scripts\to'
$files = Get-ChildItem $SourceDirectory -Recurse -Exclude *.pdf
foreach ($file in $files)
{
write-host $file.FullName
Copy-Item $file.FullName -Destination $DestinationDirectory
}