Windows 7 Forums


Windows 7: TOTAL noob xcopy question ...

03 May 2011   #1

windows / Linux - Depending on mood
 
 
TOTAL noob xcopy question ...

Guys I am sorry to have to ask this but I can't for the life of me recall xcopy commands lol ...

Using the batch file:-
Code:
@echo off
cls
N:
cd \
mkdir 1047483660
cd 1047483660
xcopy "\\myserver\myshare\Folder1" /c /f /s /e >> c:\xcopy.log
Although the files copy OK (here's xcopy.log)
Code:
\\myserver\myshare\Folder1\File1.avi -> N:\1047483660\File1.avi
\\myserver\myshare\Folder1\File2.avi -> N:\1047483660\File2.avi
\\myserver\myshare\Folder1\File3.avi -> N:\1047483660\File3.avi
I want it to make the same folder structure on the destination path instead of dumping all the files into the 'root'

(ie, so xcopy.log reads)
Code:
\\myserver\myshare\Folder1\File1.avi -> N:\1047483660\Folder1\File1.avi
\\myserver\myshare\Folder1\File2.avi -> N:\1047483660\Folder1\File2.avi
\\myserver\myshare\Folder1\File3.avi -> N:\1047483660\Folder1\File3.avi
I hope that makes sense, sorry, it's been a Loooooooooooooooooooong day lol!
Thank you for any assistance you can offer me!!



Last edited by badgerfruit; 03 May 2011 at 02:47 PM.. Reason: gramtical errors
My System SpecsSystem Spec

03 May 2011   #2
whs

Vista, Windows7, Mint Mate, Zorin, Windows 8
Florida in winter, Black Forest/Germany
 
 

Did you try xcopy /? in cmd. That gives you the parameters.
My System SpecsSystem Spec
03 May 2011   #3

Windows 7 Ultimate 32bit SP1
 
 

Heres a list Xcopy
My System SpecsSystem Spec
.


03 May 2011   #4

windows / Linux - Depending on mood
 
 

hello, thank you for the prompt replies but I did read technet before making the batch file and I thought that I had hit the right combination, clearly not
My System SpecsSystem Spec
03 May 2011   #5

Vista x64 / 7 X64
 
 

Try

md 1047483660\Folder1

cd 1047483660\Folder1

Or, if you have several, e.g. Folder1, Folder2, etc you want to copy you can go up a level

md 1047483660

cd 1047483660

xcopy "\\myserver\myshare" /cefs
My System SpecsSystem Spec
Reply

 TOTAL noob xcopy question ... problems?



Thread Tools



Similar help and support threads for: TOTAL noob xcopy question ...
Thread Forum
Laptop - Total Noob - Battery Life Question Hardware & Devices
Solved Noob question Network & Sharing
A noob question Hardware & Devices
mp3 noob question Music, Pictures & Video
Total noob here! Chillout Room


All times are GMT -5. The time now is 05:55 AM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32