.bat files are executable files that run commands on PC. Commands are used by network administrators to control directories, files and other applications on user's device. .bat files can be used to copy directories, run application or load drivers. These files are located in start menu, or administrator can open file. The .bat file performs in a DOS prompt environment.

· Run text editor. Many administrators use Notepad to make new batch file. .bat files are simple text, so any text editor is adequate
· Enter following code in batch file:
xcopy <original_file_location> <copy_to_location>
xcopy is file to copy and second is location copied file.

· Store file with a .bat extension. On Notepad, select "File," click on "Save As" option and name file with.bat extension.
· Open file to verify code.
· See directory. The copied file is in directory now as batch file.