GlasgowMary 20:45 20 Oct 2004

I've written a .bat file that is scheduled to copy files from the c:\drive to a network folder.

I want to, automatically, overwrite files that are already in the destination folder. Files from the source folder to the destination folder have the same name. At present, I need to confirm by pressing 'y' to overwrite the files.

Does anyone, VOG (Voice of God),know the syntax for this?


  powerless 20:50 20 Oct 2004

Show us ya batch file.

  VoG II 20:52 20 Oct 2004

I'm no expert on this but I think you need a switch


It is Very Old G*t by the way :o)

  Dan the Confused 21:01 20 Oct 2004

Think you use the /-Y switch at the end of the COPY command (but very rusty).

  VoG II 21:03 20 Oct 2004

/Y suppresses prompting

/-Y turns prompting on.

  Dan the Confused 21:05 20 Oct 2004

Maybe I need some oil... :)

  GlasgowMary 21:30 20 Oct 2004

Thank you. I'll try the /y command. It looks good.

VOG, you are absolutely NOT a 'Very Old G*t'. Without you, this site would be massively poorer. I feel ashamed at how little I contribute. I don't have you're expertise, although I do know more that the average user, (probably a lot more), but still inadequate.

Thanks again,

I suspect DOS is dying with the advent of XP.

  woodchip 23:40 20 Oct 2004

If you have them on a floppy You Use the *.* copy to folder

As if you had them on Floppy it would be

At A:\Coppy *.* (Path)

Or at C:\> you Would use

C:\>(Path) coppy *.* (Destination Path) Or change to Dir with the CD as

C:\>CD (Drive)Path

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Best phone camera 2017

Stunning new film posters by Hattie Stewart, Joe Cruz & more

iPad Pro 10.5in (2017) review

Comment faire une capture d’écran sur un Mac ?