Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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!!



My System SpecsSystem Spec
.

03 May 2011   #2
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

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

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

Microsoft Community Contributor Award Recipient

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 ...




Thread Tools



Similar help and support threads for2: TOTAL noob xcopy question ...
Thread Forum
Really noob question Software
Laptop - Total Noob - Battery Life Question Hardware & Devices
A noob question Hardware & Devices
Noob Question need help General Discussion
A noob question. General Discussion
Total noob here! Chillout Room

Our Sites

Site Links

About Us

Find Us

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

All times are GMT -5. The time now is 01:09 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

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 33