Windows: batch script to copy directory

Self-tutoring about Windows: the tutor mentions a batch script to copy a directory.

The batch script I wrote (using Notepad):

@echo off

robocopy c:\this_dir k:\that_dir /e

I saved that file as the_backup.bat: batch files need be named with bat or cmd extension.

I’ve run it once; it seems to work fine.


Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply