• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

COPYCMD

Starting with MS-DOS 6.2, COPY, MOVE, and XCOPY all prompt for confirmation before overwriting a file. Because this behavior might wreak havoc with your old batch files, this behavior is the default only when these commands are run from the command line. If COPY, MOVE, or XCOPY is run from a batch file, it overwrites files without warning, which is its behavior in previous versions of DOS.

You can change the new default behavior by defining an environment variable named COPYCMD. To force COPY, MOVE, and XCOPY to prompt you before overwriting a file in all cases, even from a batch file, add the following line to your AUTOEXEC.BAT file:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint