PC Review


Reply
Thread Tools Rate Thread

How to create a batch file for copying?

 
 
Eric
Guest
Posts: n/a
 
      10th Jan 2010
Does anyone have any suggestions on how to create a batch file?
I would like to copy everything within D drive into G drive, and overwrite
anything without request for any confirmation. After that, shut down my XP
window.
Does anyone have any suggestions on how to code this batch file?
Thanks in advance for any suggestions
Eric
 
Reply With Quote
 
 
 
 
Pegasus [MVP]
Guest
Posts: n/a
 
      10th Jan 2010


"Eric" <(E-Mail Removed)> said this in news item
news:0BA6058A-4560-4610-9872-(E-Mail Removed)...
> Does anyone have any suggestions on how to create a batch file?
> I would like to copy everything within D drive into G drive, and overwrite
> anything without request for any confirmation. After that, shut down my XP
> window.
> Does anyone have any suggestions on how to code this batch file?
> Thanks in advance for any suggestions
> Eric


Here you go:
@echo off
xcopy d:\*.* g:\ /s /y

If you are dealing with large amounts of data then this option is
preferable:
@echo off
robocopy d:\ g:\ *.* /s /is /w:1 /r:1

You can download robocopy.exe from here:
http://www.microsoft.com/downloads/d...displaylang=en.
To see its many switches, type robocopy /? at the Command Prompt.

 
Reply With Quote
 
Shenan Stanley
Guest
Posts: n/a
 
      10th Jan 2010
Eric wrote:
> Does anyone have any suggestions on how to create a batch file?
> I would like to copy everything within D drive into G drive, and
> overwrite anything without request for any confirmation. After
> that, shut down my XP window.
> Does anyone have any suggestions on how to code this batch file?
> Thanks in advance for any suggestions


xcopy /?
shutdown /?
start /?

Use those (with appropriate modifiers per the /? help you get) in a batch
script together.

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html


 
Reply With Quote
 
Russ SBITS.Biz [SBS-MVP]
Guest
Posts: n/a
 
      10th Jan 2010

Try RichCopy 4.0
It's Robo Copy on steroids

http://technet.microsoft.com/en-us/m...t.aspx?pr=blog

--
Russell Grover - SBITS.Biz [SBS-MVP]
Microsoft Gold Certified Partner
Microsoft Certified Small Business Specialist
World Wide 24hr SBS Remote Support - http://www.SBITS.Biz
Microsoft Online Services - http://www.microsoft-online-services.com


"Pegasus [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
>
> "Eric" <(E-Mail Removed)> said this in news item
> news:0BA6058A-4560-4610-9872-(E-Mail Removed)...
>> Does anyone have any suggestions on how to create a batch file?
>> I would like to copy everything within D drive into G drive, and
>> overwrite
>> anything without request for any confirmation. After that, shut down my
>> XP
>> window.
>> Does anyone have any suggestions on how to code this batch file?
>> Thanks in advance for any suggestions
>> Eric

>
> Here you go:
> @echo off
> xcopy d:\*.* g:\ /s /y
>
> If you are dealing with large amounts of data then this option is
> preferable:
> @echo off
> robocopy d:\ g:\ *.* /s /is /w:1 /r:1
>
> You can download robocopy.exe from here:
> http://www.microsoft.com/downloads/d...displaylang=en.
> To see its many switches, type robocopy /? at the Command Prompt.


 
Reply With Quote
 
Russ SBITS.Biz [SBS-MVP]
Guest
Posts: n/a
 
      10th Jan 2010

Sorry you wanted a batch process.
You can try SyncBackSE
it schedules file copies very well and the free version does a excellent job
with logging.
Russ

--
Russell Grover - SBITS.Biz [SBS-MVP]
Microsoft Gold Certified Partner
Microsoft Certified Small Business Specialist
World Wide 24hr SBS Remote Support - http://www.SBITS.Biz
Microsoft Online Services - http://www.microsoft-online-services.com


"Russ SBITS.Biz [SBS-MVP]" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Try RichCopy 4.0
> It's Robo Copy on steroids
>
> http://technet.microsoft.com/en-us/m...t.aspx?pr=blog
>
> --
> Russell Grover - SBITS.Biz [SBS-MVP]
> Microsoft Gold Certified Partner
> Microsoft Certified Small Business Specialist
> World Wide 24hr SBS Remote Support - http://www.SBITS.Biz
> Microsoft Online Services - http://www.microsoft-online-services.com
>
>
> "Pegasus [MVP]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>
>>
>> "Eric" <(E-Mail Removed)> said this in news item
>> news:0BA6058A-4560-4610-9872-(E-Mail Removed)...
>>> Does anyone have any suggestions on how to create a batch file?
>>> I would like to copy everything within D drive into G drive, and
>>> overwrite
>>> anything without request for any confirmation. After that, shut down my
>>> XP
>>> window.
>>> Does anyone have any suggestions on how to code this batch file?
>>> Thanks in advance for any suggestions
>>> Eric

>>
>> Here you go:
>> @echo off
>> xcopy d:\*.* g:\ /s /y
>>
>> If you are dealing with large amounts of data then this option is
>> preferable:
>> @echo off
>> robocopy d:\ g:\ *.* /s /is /w:1 /r:1
>>
>> You can download robocopy.exe from here:
>> http://www.microsoft.com/downloads/d...displaylang=en.
>> To see its many switches, type robocopy /? at the Command Prompt.

>

 
Reply With Quote
 
 
 
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a batch file Namit Kr Goel Windows XP Basics 2 24th Oct 2006 09:45 PM
DOS: How to create a batch file that will move file based on files =?Utf-8?B?QnJhbmRvbg==?= Windows XP General 2 25th Aug 2006 11:50 PM
How Do I Create Batch File Dennis Marks Windows XP Basics 10 22nd Jun 2006 12:21 PM
Batch file for copying C: =?Utf-8?B?Q2hhcmxlcw==?= Windows XP Performance 4 21st Feb 2006 01:20 AM
Copying FULL folder with a batch file? Lucien Peter Windows XP Help 0 27th Sep 2004 02:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:07 PM.