ROBOCOPY problem - Won't delete source...

Soldato
Joined
13 Jun 2009
Posts
4,249
Location
My own head
Hello all,

Not sure why this is happening, but my download box doesn't seem to kill the source once it has copied to the destination. This is from WINDOWS7 to WINDOWS 2K8 R2

I'm sure it's not a permission issue, as I'm running the batch as administrator and under a high level admin account.

The code is as follows:

set SourcePATH=C:\Downloader\Completed

set DestPATH=\\HPSERVER\MediaStore
set DestUser=XXX
set DestPass=XXX

net use x: \\HPSERVER\MediaStore /user:%DestUser% %DestPass% /persistent:no

:start

net use x: \\HPSERVER\MediaStore /user:%DestUser% %DestPass% /persistent:no

ROBOCOPY.EXE C:\Downloader\Completed\Folder1 "X:\Folder1" /E /Z /COPYALL /MOV /R:10 /W:30 /TBD /V /NP /ETA /TEE /LOG:Folder1.log

ROBOCOPY.EXE C:\Downloader\Completed\Folder2 "X:\Folder2" /E /Z /COPYALL /MOV /R:10 /W:30 /TBD /V /NP /ETA /TEE /LOG+:Folder1.log

ROBOCOPY.EXE C:\Downloader\Completed\Folder3 "X:\Folder3" /E /Z /COPYALL /MOV /R:10 /W:30 /TBD /V /NP /ETA /TEE /LOG+:Folder1.log

ECHO DONE

ECHO Beginning sleep for 15 minutes
PING 1.1.1.1 -n 1 -w 900000 >NUL

goto start

The script itself works fantastic, but deleting from source would be nice so I don't have to keep maintaining drive space on the download box (only 160GB).

Anyone got ideas as to why this wouldn't been working? Been scratching my head for a while now.
 
Last edited:
Check the NTFS permissions, even though you're admin you might only have RW permission which would explain why you can copy but not delete.
 
I have got

Administrators
Everyone
Main (Profile it's running under)

All assigned

Full Control
Modify
Read & Execute
List Folder Contents
Read
Write

So they should have system level access to delete files/folders :/
 
Back
Top Bottom