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
badgerfruit

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
Jacee
Microsoft MVP

Windows 7 Ultimate 32bit SP1
 
 

Heres a list Xcopy
My System SpecsSystem Spec
.


03 May 2011   #4
badgerfruit

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
SIW2

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
Thread Forum
Really noob question
Could someone tell me how i might download software onto a Flash drive please
Software
Laptop - Total Noob - Battery Life Question
Hi All! I just got a new laptop. I went through the suggested 'break-in' cycle with the battery; that is, letting it drain, charging, letting it drain, etc. So the question is this: Does running the laptop on AC power shorten the life of the battery? This may sound stupid, but I have other...
Hardware & Devices
A noob question
My mobo has only 1 chassis fan connector. Let's say i want to connect 3 fans to it. How do i go about? I read somewhere that i need a fan cable splitter in order to achieve this. Is it reliable? Any other way to connect them? My mobo specs : ASUSTeK Computer Inc. -Support- Specification P5G41-M...
Hardware & Devices
Noob Question need help
How do i find all my specs on my computer so i can fill out the My Specs in the User CP
General Discussion
A noob question.
Hey guys: I am wondering where I go look to see what build Windows 7 is up to. Are some versions more stable than others? I am currently running 7231 and it freezes up quite a bit and I would like to do a fresh install. I have heard that 7232 is stable. Is there a more recent version that...
General Discussion
Total noob here!
Sorry I am new, and I need to know, where do I change my user picture? I know this should be obvious, but I can't find it anywhere.:rolleyes: Please help.
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 21:12.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App