Creating a Batch File to Copy Files in a Local Drive

Channel:
Subscribers:
12,500
Published on ● Video Link: https://www.youtube.com/watch?v=4EOfxhAJNi0



Duration: 3:19
37,040 views
97


copy "drive:\file directory source\filename.extension" "file directory target\file directory sub directory target"

xcopy "drive:\file directory source\filename.extension" "file directory target\file directory sub directory target"

Example:
copy "c:\Program Files\Work.pdf" "c:\files\folder1"

xcopy "c:\Program Files\Work.pdf" "c:\files\folder1"

Copy a whole directory with all the contents in it.

xcopy /s /e "drive:\filepath source directory" "drive:\filepath target directory"

Example:
xcopy /s /e "Files1\Part1" "c:\server files\location1"




References

Batch Programming Inputs and Outputs

https://www.youtube.com/watch?v=ycpBqJRe16M

Creating a Batch File to send files from a Local Drive to a Network Drive
https://www.youtube.com/watch?v=64wmejdjfXA

Creating a Batch File to Create Directories and Remove Directories
https://www.youtube.com/watch?v=uUoSrVAJmfo

Batch Programming Simple Menu

https://www.youtube.com/watch?v=wl3cjT2JqYk

How to Create a Basic FTP Batch File

https://www.youtube.com/watch?v=fRzdUv-d-MM

FTP Console Commands How to Send and Retrieve Files

https://www.youtube.com/watch?v=eQFP5u_t52Q

FTP Command Prompt Connecting and Downloading Files

https://www.youtube.com/watch?v=kTMJssY-nss

Run a Batch File in Administrative Mode with Task Scheduler

https://www.youtube.com/watch?v=k2mqFNUeKd4

Create a Batch File for Ipconfig

https://www.youtube.com/watch?v=xh2Hi01ByQM

Basic Batch Commands Reference Guide

https://www.youtube.com/watch?v=ru7btFh32o8

Creating a Batch File to Remove Directories and Subdirectories

https://www.youtube.com/watch?v=Y52C3ntnb5c

Batch file to Open Applications

https://www.youtube.com/watch?v=uV3bDx5iIPM

Creating a Batch File to Copy All Subdirectories onto Another Folder

https://www.youtube.com/watch?v=rVZ0c-E5GW8

Creating a Batch File to Open Folders on Windows Desktop

https://www.youtube.com/watch?v=kOly0Ws16zU

Creating a Batch File to Delete Folders and Remove Directories

https://www.youtube.com/watch?v=KVjUJrpSQso

Creating a Batch File to send files from a Local Drive to a Network Drive

https://www.youtube.com/watch?v=64wmejdjfXA

Creating a Batch File to Copy Files in a Local Drive

https://www.youtube.com/watch?v=4EOfxhAJNi0

Open Websites and Folders with Batch file

https://www.youtube.com/watch?v=YS2bgZUSSw4

Batch Programming Mathematical Functions

https://www.youtube.com/watch?v=cvwUiTvXuqg

Batch Programming Menu with If statements

https://www.youtube.com/watch?v=mRrMtgURtgA







Tags:
Batch Files
Batch File Applications
Batch file to Copy Files