Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

move files, not copy paste then delete source

$
0
0

i'm scripting a file share restructure. I have noticed in explorer that when I ctrl+x a large file\directory and ctrl+v it to the same mapped drive, the move is instant where as if I did it from one mapped drive to another it does a copy and delete source which take a long time depending on the size of the file. I've read up on this and I think i understand why. Anyway, the reason I'm writing to the forum is i can't find a way to script these results. If I use robocopy with '/MOVE /E' it does the equivalent of copying the files and then deleting the source. thoughts? 


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>