You are viewing our Forum Archives. To view or take place in current topics click here.
i need a simple copy and paste bat file/software
Posted:

i need a simple copy and paste bat file/softwarePosted:

Ethics
  • Christmas!
Status: Offline
Joined: May 06, 201311Year Member
Posts: 3,754
Reputation Power: 154
Status: Offline
Joined: May 06, 201311Year Member
Posts: 3,754
Reputation Power: 154
What i need something to do is copy a folder from one place and paste it somewhere else, so the original copy is still there, it just copies the folder and pastes it somewhere else. I need it to do this every 5 mins


it's a pretty simple thing but i'm not sure if it can be done. It's kinda hard to explain to google lol, so i thought i would try here. Thank you.
#2. Posted:
-Deano
  • PC Master Race
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532

@echo off
cls
:start
xcopy <Source Directory> <Destination Directory> /H /S /E /K /F /C
timeout 300
goto start


XCOPY is the copy command using attributes:
/H = Include hidden files and folders
/S = Include subfolders and files
/E = Include empty subfolders and files
/K = Copy the attributes of each file/folder (i.e. read-only)
/F = Print the files and folder in the window as it is copied.
/C = Continue to copy other files/folders if an error occurs with one file/folder

This should be suitable for your needs.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.