An OCE printer can only scan files to a FTP location with one name. There are no unique attributes that the Multifuctional printer can add to a file. This results in files being overwritten if not renamed immediately after being transferred. I’ve written a little script that is run every 5 seconds via Task Scheduler. This script renames files in a unique format and then moves the file to some place else.
$Folder = "C:\Inetpub\FTProot\" $Destination = "\\Ergensopdebozewereld" $Applytime = (Get-Date).AddSeconds(-20) $Content = @(gci $Folder | where {$_.LastWriteTime -lt $Applytime -and $_.PSIsContainer -eq $False}) Foreach ($item in $Content){$TEMP = $Item.LastWriteTime $Time = Get-Date $TEMP -Format yyyyMMdd_HHmmss $Name = $item.name.replace(".tif","") Rename-Item -Path $Item.fullname -NewName "$Name_$Time.tif" $Item = GI "$Folder\$Name_$Time.tif" Move-Item -Path $Item -Destination $Destination -Force}