xcopy to create destination directory
I am trying to copy c:\bar to c:\foo, and I need the bar directory
created under the c:\foo when the copy takes place.
If c:\bar contains 3 files, a.txt, b.txt, and c.txt the final result
should be c:\foo\bar\a.txt, c:\foo\bar\b.txt, and c:\foo\bar\c.txt.
I though xcopy /s would do it for me, but it just copies the files
without creating the directory first. I tried the /i switch, but that
didn't seem to help.
What am I missing? Thanks.
This is my actual command line
xcopy c:\somedir \\pstst4s01\d$\d0129_backup /M/S/E/C/F/Y
I want c:\somedir created in \\pstst4s01\d$\d0129_backup and then a
copy of all files and subdirs?
To Post a message, send it to: batchworld@...
To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/batchworld/
<*> Your email settings:
Individual Email | Traditional
(Continue reading)