Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-07-2003, 02:04 PM   PM User | #1
darylzero
New to the CF scene

 
Join Date: Mar 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
darylzero is an unknown quantity at this point
Please help w/ batch file!!! Thanks!

I need a batch file to backup some folders and files on the root C:\ drive of a Windows XP Professinal. I have an old batch file that worked well on a Windows ME system, but it doesn't work on the XP Pro machine. I need to backup the files from the C: drive to the CD-RW drive.
Here is the old batch file. Please help as to what I would need to change. Thank You!!!

--------------------------------------------------------
cd\
c:
XCOPY C:\MBACHI\*.* D:\MBACHI\*.*
XCOPY C:\MBACHI\DEFAULT_DC\*.* D:\MBACHI\DEFAULT_DC\*.*
XCOPY C:\MBACHI\DEFAULT_MD\*.* D:\MBACHI\DEFAULT_MD\*.*
XCOPY C:\MBACHI\IMAGES\*.* D:\MBACHI\IMAGES\*.*
XCOPY C:\MBACHI\MBAWIN\*.* D:\MBACHI\MBAWIN\*.*
XCOPY C:\MBANOTE\*.* D:\MBANOTE\*.*
XCOPY C:\MBACHI\WP_DC\*.* D:\MBACHI\WP_DC\*.*
XCOPY C:\MBACHI\WP_MD\*.* D:\MBACHI\WP_MD\*.*
XCOPY C:\WP\*.* D:\WP\*.*
XCOPY C:\ARCHIVE\*.* D:\ARCHIVE\*.*
XCOPY C:\A\*.* D:\A\*.*
XCOPY C:\B\*.* D:\B\*.*
XCOPY C:\C\*.* D:\C\*.*
XCOPY C:\D\*.* D:\D\*.*
XCOPY C:\E\*.* D:\E\*.*
XCOPY C:\F\*.* D:\F\*.*
XCOPY C:\G\*.* D:\G\*.*
XCOPY C:\H\*.* D:\H\*.*
XCOPY C:\I\*.* D:\I\*.*
XCOPY C:\J\*.* D:\J\*.*
XCOPY C:\K\*.* D:\K\*.*
XCOPY C:\L\*.* D:\L\*.*
XCOPY C:\M\*.* D:\M\*.*
XCOPY C:\N\*.* D:\N\*.*
XCOPY C:\O\*.* D:\O\*.*
XCOPY C:\P\*.* D:\P\*.*
XCOPY C:\Q\*.* D:\Q\*.*
XCOPY C:\R\*.* D:\R\*.*
XCOPY C:\S\*.* D:\S\*.*
XCOPY C:\T\*.* D:\T\*.*
XCOPY C:\U\*.* D:\U\*.*
XCOPY C:\V\*.* D:\V\*.*
XCOPY C:\W\*.* D:\W\*.*
XCOPY C:\X\*.* D:\X\*.*
XCOPY C:\Y\*.* D:\Y\*.*
XCOPY C:\Z\*.* D:\Z\*.*
---------------------------------------------------------
darylzero is offline   Reply With Quote
Old 03-07-2003, 09:14 PM   PM User | #2
Phantom
Regular Coder

 
Join Date: Feb 2003
Location: East Side/West Side
Posts: 118
Thanks: 0
Thanked 0 Times in 0 Posts
Phantom is an unknown quantity at this point
Try going from cd\ to cd c:\ (or just cd c I think)
Phantom is offline   Reply With Quote
Old 03-07-2003, 10:32 PM   PM User | #3
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
Just delete the first two lines of the bat file which aren't needed anyway.
Roy Sinclair is offline   Reply With Quote
Old 03-07-2003, 11:14 PM   PM User | #4
darylzero
New to the CF scene

 
Join Date: Mar 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
darylzero is an unknown quantity at this point
Thanks for the help I got it to work. The only problem is I can have it copy from hard drive to hard drive, but what I really need is for it to copy to a CD-RW. Any ideas as to how this would be done?

Thanks
darylzero is offline   Reply With Quote
Old 03-07-2003, 11:42 PM   PM User | #5
Phantom
Regular Coder

 
Join Date: Feb 2003
Location: East Side/West Side
Posts: 118
Thanks: 0
Thanked 0 Times in 0 Posts
Phantom is an unknown quantity at this point
Hmmm...no clue actually...maybe try copying to your Burner's drive letter? Other than that I wouldn't have a clue
Phantom is offline   Reply With Quote
Old 03-08-2003, 01:26 AM   PM User | #6
Jason
Regular Coder

 
Join Date: Feb 2003
Location: California
Posts: 925
Thanks: 0
Thanked 0 Times in 0 Posts
Jason is an unknown quantity at this point
Try using just COPY instead of XCOPY
and if that doesn't work take out the "." and just make it a space.


Jason

Last edited by Jason; 03-08-2003 at 01:31 AM..
Jason is offline   Reply With Quote
Old 03-08-2003, 03:25 PM   PM User | #7
darylzero
New to the CF scene

 
Join Date: Mar 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
darylzero is an unknown quantity at this point
Ok I got it. Thanks for the help everyone. My CD-RW disc wasn't formatted. Now it works like a charm.
darylzero is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 01:29 PM.


Advertisement
Log in to turn off these ads.