Hi JamesM
Is it possible to see your trick I'm trying to do nearly the same thing.
Thanks.
Is it possible to see your trick I'm trying to do nearly the same thing.
Thanks.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
Session.EnumerateRemoteFiles
:
$folder\files
).
foreach ($folder in $folderarray) {
Copy-Item "D:\Users\username\*\*\*\$folder\files\*" -Destination
"D:\Users\username\Desktop\temp\" -Recurse
}
foreach ($folder in $folderarray) {
$session.PutFiles("D:\Users\username\*\*\*\$folder\files\*", "/NewRelease/$folder/", $False, $transferOptions)