TOTAL noob xcopy question ...

badgerfruit

New member
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:
[SIZE=2][URL="file://\\myserver\myshare\Folder1\File1.avi"]\\myserver\myshare\Folder1\File1.avi[/URL] -> N:\1047483660\File1.avi[/SIZE]
[URL="file://\\myserver\myshare\Folder1\File2.avi"][U][COLOR=#0066cc]\\myserver\myshare\Folder1\File2.avi[/COLOR][/U][/URL] -> N:\1047483660\File2.avi
[URL="file://\\myserver\myshare\Folder1\File3.avi"][U][COLOR=#0066cc]\\myserver\myshare\Folder1\File3.avi[/COLOR][/U][/URL] -> 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:
[SIZE=2][SIZE=2][URL="file://\\myserver\myshare\Folder1\Files"][U][COLOR=#0066cc][URL="file://\\myserver\myshare\Folder1\File1.avi"]\\myserver\myshare\Folder1\File[/URL][/COLOR][/U]1.avi[/URL] -> N:\1047483660\[U][COLOR=#0066cc]Folder1[/COLOR][/U]\File1.avi[/SIZE][/SIZE]
[SIZE=2][URL="file://myserver/myshare/Folder1/Files"][URL="file://myserver/myshare/Folder1/File1.avi"][U][COLOR=#0066cc][URL="file://\\myserver\myshare\Folder1\File2.avi"]\\myserver\myshare\Folder1\File[/COLOR][/U][/URL]2.avi[/URL][/URL] -> N:\1047483660\[U][COLOR=#0066cc]Folder1[/COLOR][/U]\File2.avi[/SIZE]
[SIZE=2][URL="file://myserver/myshare/Folder1/Files"][URL="file://myserver/myshare/Folder1/File1.avi"][U][COLOR=#0066cc][URL="file://\\myserver\myshare\Folder1\File3.avi"]\\myserver\myshare\Folder1\File[/COLOR][/U][/URL]3.avi[/URL][/URL] -> N:\1047483660\[U][COLOR=#0066cc]Folder1[/COLOR][/U]\File3.avi
[/SIZE]

I hope that makes sense, sorry, it's been a Loooooooooooooooooooong day lol!
Thank you for any assistance you can offer me!!
 
Last edited:

My Computer

Computer Manufacturer/Model Number
IBM / Lenovo
OS
windows / Linux - Depending on mood
CPU
3GHZ P4HT
Motherboard
IBM / Lenovo
Memory
1GB
Graphics Card(s)
NV6200
Sound Card
On-board - Soundmax
Monitor(s) Displays
32" Sony Bravia
Screen Resolution
1024/768
Hard Drives
40GB IDE / Make varies depending on OS as I build 1 HDD for each and swap at will.
PSU
Standard
Case
Standard
Cooling
Standard
Keyboard
Logitech Wireless EX110
Mouse
Logitech Wireless EX110
Internet Speed
20MB Cable
Other Info
Badgerlan has 9 machines - 5 servers & 4 clients; total disk space is about 6TB and increasing!!
Did you try xcopy /? in cmd. That gives you the parameters.
 

My Computer

Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Bruce ... somewhere in his 40's
OS
Windows 7 Ultimate 32bit SP1
CPU
Intel(R) Core(TM)2 Quad CPU @ 2.40GHz, 2400 MHz
Motherboard
INTEL/D975XBX2
Memory
4 GB
Graphics Card(s)
ATI Radeon HD 2600 Pro
Monitor(s) Displays
Samsung SyncMaster 914v
Screen Resolution
1280 x 1024
Hard Drives
2/500GB each ... ST3500630AS ATA Device.
One is not connected
PSU
Rocketfish 700 W
Case
G.Skill Gigabyte Chassis
Keyboard
Standard PS/2 Keyboard
Mouse
Microsoft PS/2 Mouse
Internet Speed
DSL
Antivirus
Avira Internet Security
Browser
IE 11
Other Info
ATI HDMI Audio
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 Computer

Computer Manufacturer/Model Number
IBM / Lenovo
OS
windows / Linux - Depending on mood
CPU
3GHZ P4HT
Motherboard
IBM / Lenovo
Memory
1GB
Graphics Card(s)
NV6200
Sound Card
On-board - Soundmax
Monitor(s) Displays
32" Sony Bravia
Screen Resolution
1024/768
Hard Drives
40GB IDE / Make varies depending on OS as I build 1 HDD for each and swap at will.
PSU
Standard
Case
Standard
Cooling
Standard
Keyboard
Logitech Wireless EX110
Mouse
Logitech Wireless EX110
Internet Speed
20MB Cable
Other Info
Badgerlan has 9 machines - 5 servers & 4 clients; total disk space is about 6TB and increasing!!
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 Computers

System One System Two

  • Computer type
    PC/Desktop
    OS
    7 X64
    CPU
    i5 8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Hard Drives
    various
    PSU
    pure power 11 400w cm
    Case
    Coolermaster
    Cooling
    cryorig m9i
  • Computer type
    PC/Desktop
    OS
    7x64
    CPU
    g5400
    Motherboard
    ga b365m ds3h
    Memory
    8gb ddr4 2400
    PSU
    xfx pro 450w
Back
Top