Solved How do I gt original files to delete.

June 23, 2018 at 10:31:06
Specs: Windows 7
I have The following script which moves the files but im also trying to delete the originals in

"C:\CCTV DOWNLOADS\BTP DOWNLOADS"
"C:\CCTV DOWNLOADS\CHILTERN DOWNLOADS"

Once they have moved to "S" drive. Any ideas?

set SBTP="C:\CCTV DOWNLOADS\BTP DOWNLOADS"
set SCRCL="C:\CCTV DOWNLOADS\CHILTERN DOWNLOADS"

set DBTP="\\crcl.local\ApplicationData\BTPCCTVDownloads"
set DCRCL="S:\CCTV Downloads\Chiltern Downloads"
set DSAFE="S:\CCTV Downloads\safety dept\ICC SYNC"

xcopy %SBTP% %DBTP% /e /d
xcopy %STBP% %DSAFE% /e /d

xcopy %SCRCL% %DCRCL% /e /d


message edited by GDB


See More: How do I gt original files to delete.

Reply ↓  Report •

#1
June 24, 2018 at 05:20:43
maby try robocopy instead of xcopy

i5-6600K[delid]@4.8GHz/4.4GHz@1.39v LLC=6 | 2x4GB Crucial-DDR4-2133CL15@14-13-13-28 1T 2800MHz@1.37v
MSI Armor RX 570 4GB@1430Mhz core@1.256v/1920MHz BiosModded


Reply ↓  Report •

#2
June 24, 2018 at 09:54:55
✔ Best Answer
Im totally new to robocopy and looked on the internet and come up with this command.

Could someone possibly just check for me.

Im trying to move from
C:\DOWNLOADSA C:\CCTV DOWNLOADS1 and also from

C:\DOWNLOADS C:\CCTVDOWNLOADS2 and create a copy of C:\CCTVDOWNLOADS2 in folder C:\CCTVDOWNLOADS3

then delete all data from C:\DOWNLOADSA and C:\DOWNLOADS just leaving the folders

Script below

ROBOCOPY C:\DOWNLOADSA  C:\CCTV DOWNLOADS1/E
ROBOCOPY C:\DOWNLOADS C:\CCTVDOWNLOADS2/E
ROBOCOPY C:\DOWNLOADS C:\CCTVDOWNLOADS3 "*.*" /COPYALL


Reply ↓  Report •

#3
June 25, 2018 at 01:42:50
looks good, just make a backup just in case ;) but i think you did already

i5-6600K[delid]@4.8GHz/4.4GHz@1.39v LLC=6 | 2x4GB Crucial-DDR4-2133CL15@14-13-13-28 1T 2800MHz@1.37v
MSI Armor RX 570 4GB@1430Mhz core@1.256v/1920MHz BiosModded


Reply ↓  Report •
Related Solutions


Ask Question