MS DOS

  GlasgowMary 20:45 20 Oct 04
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 04

Show us ya batch file.

  VoG II 20:52 20 Oct 04

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 04

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

  VoG II 21:03 20 Oct 04

/Y suppresses prompting

/-Y turns prompting on.

  Dan the Confused 21:05 20 Oct 04

Maybe I need some oil... :)

  GlasgowMary 21:30 20 Oct 04

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 04

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.

Best phone camera 2016/2017: Galaxy S7 vs iPhone 7 vs Google Pixel vs HTC 10 Evo vs OnePlus 3T vs…

1995-2015: How technology has changed the world in 20 years

These are the Best Christmas Ads and Studio Projects of 2016

Super Mario Run preview | Hands-on first impressions of Super Mario Run: Mario's iPhone & iPad…