powershell copy creates extra empty folders -


i'm using simple command copy on files , folders dropped temp folder.

copy c:\update_temp\* c:\target\ -recurse -force 

say update_temp has following structure

c:\update_temp\first_file.txt  c:\update_temp\first_folder\anotherfile.txt 

when run command, here end with

c:\target\first_file.txt  c:\target\first_folder\anotherfile.txt  **c:\target\first_folder\first_folder** 

not sure why last entry happening, end ton of unnecessary folders.

i'm running powershell v1

any ideas? thanks

i'm not sure why folder being created, think want call copy without *:

copy c:\update_temp\ c:\target\ -recurse -force 

this recursively copy update_temp target.

what you're doing copying under update_temp target. that's subtely different , while can't quite puzzle out why end first_folder\first_folder, isn't want.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -