MS DOS

  GlasgowMary 20:45 20 Oct 2004
Locked

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?

Thanks,
Mary

  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

COPY /Y

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,
Mary






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

OnePlus 5T review: Hands-on

Illustrator Andrés Lozano on his improv line work, brazen use of colours & hand sketching

iPhone X review

Comment envoyer gratuitement des gros fichiers ?