Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming

Reply
 
LinkBack Thread Tools
Old 02-28-09   #1 (permalink)
New to Overclock.net
 
Join Date: Feb 2009
Posts: 9

Rep: 0 MRWOW12 Unknown
Unique Rep: 0
Trader Rating: 0
Default XCOPY BAT FILE help?

XCOPY Bat File
Hello there if i use the following to backup files thought a network on to a external hard would this be sufficient to copy all the files,folders no mater what type of files or attributes the files or folders have.

Full sharing permissions and security will be set so everything will be fine going through the network.

i have added the pause so you can see the amount of file copied before the bat Exits


XCOPY "c:\info data 1" z:\backup /S /E /H /K /R /F /Y

pause



Dose it matter if its in caps or not ??

xcopy "c:\info data 1" z:\backup /s /e /h /k /r /f /y

pause


Do the switches have to go in a order or can they jst be where ever for example

XCOPY "c:\info data 1" z:\backup /K /E /Y /R /H /F /S

This would be saved in a Bat File and run via double click from the desktop
MRWOW12 is offline   Reply With Quote
Old 02-28-09   #2 (permalink)
Linux Lobbyist
 
Mr Pink57's Avatar
 
intel ati

Join Date: Jun 2006
Location: a van down by the river
Posts: 3,659

Rep: 229 Mr Pink57 is acknowledged by manyMr Pink57 is acknowledged by manyMr Pink57 is acknowledged by many
Unique Rep: 178
Trader Rating: 8
Default

CMD is not case sensitive but case aware so no.

You could also do this like a menu when you start the bat file so you can choose a single drive or choose to backup all drives (say you were going to delete just one drive).

Having /S and /E is rather an odd choice btw.

pink
__________________
Quote:
Even a broken clock is right twice a day.
Quote:
Diplomacy without force is like music without instruments.
http://valid.canardpc.com/show_oc.php

System: Vadar
CPU
Core 2 Duo e6300
Motherboard
Gigabyte GA-EP45-UD3R
Memory
2 x 2gb G.Skill
Graphics Card
Powercolor HD4870 1gb w/ Ageia PhysX 128MB PCI-E
Hard Drive
[2]36gb Raptor RAID0 + 150gb Raptor
Sound Card
Auzentech X-Fi Prelude 7.1
Power Supply
Silverstone DA750 60a
Case
Antec P180B
CPU cooling
[Lapped] Noctua NH-U12P w/NF-P12 Push/Pull
GPU cooling
Zerotherm PCS+
OS
Winblows XP x64
Monitor
Acer X223Wbd

Last edited by Mr Pink57 : 02-28-09 at 10:17 PM
Mr Pink57 is offline Mr Pink57's Gallery   Reply With Quote
Old 02-28-09   #3 (permalink)
New to Overclock.net
 
Join Date: Feb 2009
Posts: 9

Rep: 0 MRWOW12 Unknown
Unique Rep: 0
Trader Rating: 0
Default

Quote:
Originally Posted by Mr Pink57 View Post
CMD is not case sensitive but case aware so no.

You could also do this like a menu when you start the bat file so you can choose a single drive or choose to backup all drives (say you were going to delete just one drive).

Having /S and /E is rather an odd choice btw.

pink
so it docent matter if its caps or not??

how about the order of the switches ??

There will be no need for a menu as its always just going to be a straight copy

from drive c:\ to the network drive Z:\ with overwrite


whats this about deleting ??
MRWOW12 is offline   Reply With Quote
Old 02-28-09   #4 (permalink)
Linux Lobbyist
 
Mr Pink57's Avatar
 
intel ati

Join Date: Jun 2006
Location: a van down by the river
Posts: 3,659

Rep: 229 Mr Pink57 is acknowledged by manyMr Pink57 is acknowledged by manyMr Pink57 is acknowledged by many
Unique Rep: 178
Trader Rating: 8
Default

No it does not matter. The order is fine.

I meant as far as if you were going to reformat a drive, instead of backing up everything you could just back a single drive thru a menu system or a different bat.

I recommend always running bats in a test environment first i.e. VMWare.

pink
__________________
Quote:
Even a broken clock is right twice a day.
Quote:
Diplomacy without force is like music without instruments.
http://valid.canardpc.com/show_oc.php

System: Vadar
CPU
Core 2 Duo e6300
Motherboard
Gigabyte GA-EP45-UD3R
Memory
2 x 2gb G.Skill
Graphics Card
Powercolor HD4870 1gb w/ Ageia PhysX 128MB PCI-E
Hard Drive
[2]36gb Raptor RAID0 + 150gb Raptor
Sound Card
Auzentech X-Fi Prelude 7.1
Power Supply
Silverstone DA750 60a
Case
Antec P180B
CPU cooling
[Lapped] Noctua NH-U12P w/NF-P12 Push/Pull
GPU cooling
Zerotherm PCS+
OS
Winblows XP x64
Monitor
Acer X223Wbd
Mr Pink57 is offline Mr Pink57's Gallery   Reply With Quote
Old 02-28-09   #5 (permalink)
New to Overclock.net
 
Join Date: Feb 2009
Posts: 9

Rep: 0 MRWOW12 Unknown
Unique Rep: 0
Trader Rating: 0
Default

Quote:
Originally Posted by Mr Pink57 View Post
No it does not matter. The order is fine.

I meant as far as if you were going to reformat a drive, instead of backing up everything you could just back a single drive thru a menu system or a different bat.

I recommend always running bats in a test environment first i.e. VMWare.

pink
oh i see no its just a copy of everything that's in the folder on c: to the network drive.

i can test it no probs ill just run it see if it works or not :P
MRWOW12 is offline   Reply With Quote
Old 02-28-09   #6 (permalink)
New to Overclock.net
 
Join Date: Feb 2009
Posts: 9

Rep: 0 MRWOW12 Unknown
Unique Rep: 0
Trader Rating: 0
Default

is there anything wrong with the /s /e ??
MRWOW12 is offline   Reply With Quote
Old 04-04-09   #7 (permalink)
New to Overclock.net
 
intel ati

Join Date: Feb 2009
Location: India
Posts: 34

Rep: 1 shh.killer Unknown
Unique Rep: 1
Trader Rating: 0
Default

i think there is no use see below example hope u get it

after // itz comment

Quote:
Cocuments and Settingsxxx>xcopy c:abc d: /s // won't copy the empty folder
C:abcNew Text Document.txt
C:abcxcddffafa.txt
2 File(s) copied

Cocuments and Settingsxxx>xcopy c:abc e: /e // will copy the empty folder
C:abcNew Text Document.txt
C:abcxcddffafa.txt
2 File(s) copied

Cocuments and Settingsxxx>xcopy c:abc f: /s /e // will copy the empty subfolder too
C:abcNew Text Document.txt
C:abcxcddffafa.txt
2 File(s) copied


Cocuments and Settingsxxx>xcopy c:abc f:abc /e /s // will copy the empty subfolder too
C:abcNew Text Document.txt
C:abcxcddffafa.txt
2 File(s) copied
shh.killer is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 07:38 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.13624 seconds with 8 queries