|
|
|
#1 (permalink) |
|
New to Overclock.net
|
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 |
|
|
|
|
|
#2 (permalink) | |||||||||||||||
|
Linux Lobbyist
![]()
Join Date: Jun 2006
Location: a van down by the river
Posts: 3,659
Rep: 229
![]() ![]() ![]() Unique Rep: 178
Trader Rating: 8
|
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:
Quote:
Last edited by Mr Pink57 : 02-28-09 at 10:17 PM |
|||||||||||||||
|
|
|
|
|
#3 (permalink) | |
|
New to Overclock.net
|
Quote:
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 ?? |
|
|
|
|
|
|
#4 (permalink) | |||||||||||||||
|
Linux Lobbyist
![]()
Join Date: Jun 2006
Location: a van down by the river
Posts: 3,659
Rep: 229
![]() ![]() ![]() Unique Rep: 178
Trader Rating: 8
|
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:
Quote:
|
|||||||||||||||
|
|
|
|
|
#5 (permalink) | |
|
New to Overclock.net
|
Quote:
i can test it no probs ill just run it see if it works or not :P |
|
|
|
|
|
|
#7 (permalink) | |
|
New to Overclock.net
|
i think there is no use see below example hope u get it
after // itz comment Quote:
|
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|