Jump to content

ROBOCOPY fails copying files from source root


Recommended Posts

Guest Malte Christensen
Posted

When copying files from source root, it seems that ROBOCOPY see the file(s) as directories and the resoult is, that the filename become a directoiry name on targetLogfile says:2023/03/08 11:16:09 ERROR 267 (0x0000010B) Accessing Source Directory \\XXXXXXXXXX\mdt$\Placer IKKE l›se filer i hovedshare - Vedr_backup_VIGTIGT.txt\ The directory name is invalid. How can I prevent thatMy code:$FileName = (Get-Date).tostring("MM-dd-yyyy---HH-mm-ss")$oldpaths = Get-ChildItem "\\XXXXXXXXXX\mdt$\*"$newpath = 'Q:\CTXMDT\'Set-Location $newpathforeach($oldpath in&

 

More...

  • Replies 0
  • Created
  • Last Reply

Popular Days

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...