Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 03-21-2009, 01:46 AM   #1 (permalink)
 
Newb Techie

Join Date: Mar 2009

Posts: 2

rootbeer506 is on a distinguished road

Default Batch File to Backup

This is my first post so please excuse my ignorance. I know more about hardware than I do software and I haven't worked with batch files outside of making simple ones that shutdown a computer and display a message. (When I was young it was funny to watch people click on IE and have their computer shutdown)

I know how to create the batch file, I am just not sure about the text that should go into it. I want to copy My documents and setting from C: to D: then copy all of D: to E:

If I understand correctly you would start something like this:

ECHO My Documents Backup

xcopy C:\Users*.* D:\Backup /c /q /g /h /r /u

Is this close?
rootbeer506 is offline  
Old 03-21-2009, 04:46 AM   #2 (permalink)
oldskool's Avatar
 
Electrical Systems Design

Join Date: Jun 2008

Location: Maine, USA

Posts: 1,651

oldskool has a spectacular aura aboutoldskool has a spectacular aura about

Default Re: Batch File to Backup

Well I checked some of my school notes, then did some googling, and it looks like you are correct. If you try it, let us know ? I am interested if it works for you. Good luck
__________________
  • Operating system(s) : Windows 7 Home Premium x64 | Ubuntu 9.10
  • CPU : Pentium Dual-Core E5200 @ 2.50GHz /Socket 775 LGA
  • Memory: 2X 2GB DDR2 SDRAM
  • Hard drive: 640 GB Western Digital Caviar Blue 7200rpm WD6400AAKS-75
  • Motherboard : Dell 0U880P
  • Video: nVidia GeGorce 8400GS
  • Chipset : Intel G41

<<<<< If you found anything I said helpful, please click the or under my avatar
oldskool is offline  
Old 03-21-2009, 10:27 AM   #3 (permalink)
 
Newb Techie

Join Date: Mar 2009

Posts: 2

rootbeer506 is on a distinguished road

Default

I get this:

C:\Users\Keegan\Desktop>xcopy C:\Users*.* E:\Backup /e /v /c /q /g /h /r /u
Does E:\Backup specify a file name
or directory name on the target
(F = file, D = directory)?

One time I put in F, the other D. It just closes out the CMD and doesn't do anything.

Found out the problem. should be: xcopy C:\Users\*.* D:\Backup\*.* /s /e /c /g /h /r /y

Last edited by Mak213; 03-21-2009 at 01:43 PM.
rootbeer506 is offline  
Old 03-23-2009, 09:17 PM   #4 (permalink)
oldskool's Avatar
 
Electrical Systems Design

Join Date: Jun 2008

Location: Maine, USA

Posts: 1,651

oldskool has a spectacular aura aboutoldskool has a spectacular aura about

Default Re: Batch File to Backup

Ah yes, forgot that part before. I missed it. Yeah, you have to do it that way to include all files. Glad you got it to work for ya.
__________________
  • Operating system(s) : Windows 7 Home Premium x64 | Ubuntu 9.10
  • CPU : Pentium Dual-Core E5200 @ 2.50GHz /Socket 775 LGA
  • Memory: 2X 2GB DDR2 SDRAM
  • Hard drive: 640 GB Western Digital Caviar Blue 7200rpm WD6400AAKS-75
  • Motherboard : Dell 0U880P
  • Video: nVidia GeGorce 8400GS
  • Chipset : Intel G41

<<<<< If you found anything I said helpful, please click the or under my avatar
oldskool is offline  
 
Closed Thread

Tags
batch files, xcopy

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Ubuntu. 95BlackGA Linux, BSD, other *nixes & Open Source Software 1 10-16-2008 09:44 PM
A sneaky, and annoying virus donaldj HijackThis Logs (finished) 25 06-16-2008 08:58 PM
Possible Corrupted/Infected Files. xXxexpertxXx Virus - Spyware Protection / Detection 11 03-12-2008 01:18 AM
WTF is a Bad Block? MikesCreation Hardware Troubleshooting 18 02-24-2008 09:31 PM
Another Hijack Log boo HijackThis Logs (finished) 17 06-26-2007 12:30 PM