View Full Version : Robocopy script
SMOKEU
18th October 2012, 15:12
I'm getting an access denied error on the destination drive. Here is my script: robocopy f:\ h:\ /mir /mt /xd f:\"system volume information" h:\$recycle.bin
http://i305.photobucket.com/albums/nn204/SR20NP/Computer%20stuff/scripterror2.jpg
Excluding that directory hasn't seemed to help.
Gremlin
18th October 2012, 15:21
Haven't used robocopy, but used similar stuff.
Are you sure you have the sysvol syntax right? Often those programs understand 8.3 format.
Assuming you're writing a backup script or similar, the destination is a trivial directory compared to the original. Most problems on that are about access and permissions to destination, rather than the program itself...
SMOKEU
18th October 2012, 15:26
Haven't used robocopy, but used similar stuff.
Are you sure you have the sysvol syntax right? Often those programs understand 8.3 format.
Assuming you're writing a backup script or similar, the destination is a trivial directory compared to the original. Most problems on that are about access and permissions to destination, rather than the program itself...
robocopy <Source> <Destination> [<File>[ ...]] [<Options>]
I've tried all sorts of combinations, including only the directories that I want to copy, yet the problem persists.
Scuba_Steve
18th October 2012, 15:37
Just install Linux this ones (http://linuxmint.com/) supposed to be alright :innocent:
Usarka
18th October 2012, 15:57
Have you rtfm?
SMOKEU
18th October 2012, 16:00
Just install Linux this ones (http://linuxmint.com/) supposed to be alright :innocent:
Fuck Mint, I've had far too many problems with it. It seems to work for a few days or a few weeks then it won't boot. I don't have that issue with other Debian based distros such as Lubuntu.
iYRe
18th October 2012, 16:56
why have you got:
f:"system - quotes should be closed, no? (or is not supposed to be there)
(also.. rsync..)
SMOKEU
18th October 2012, 16:57
I finally got this fucker to work properly with no errors:
robocopy f:\ h:\ /mir /mt /xd "f:\system volume information" "f:\$recycle.bin" "h:\$recycle.bin"
Thanks everyone.
Akzle
18th October 2012, 17:36
i see where you're going wrong. it starts with C:\Windows....
>sudo -i
>dd if=/dev/(F: ) of= /dev/(h: )
Gremlin
18th October 2012, 17:44
Told ya to check the sysvol syntax.
Rsync... or I've grown even more lazy and Beyond Compare does a good job...
SMOKEU
18th October 2012, 17:55
i see where you're going wrong. it starts with C:\Windows....
>sudo -i
>dd if=/dev/(F: ) of= /dev/(h: )
The one you really want is: sudo rm -R / --no-preserve-root
That command adds heaps of lulz to your day.
PS. I'll try your ideas AFTER making a VMWare snapshot just in case you're trying to score some lulz at my expense.
Usarka
18th October 2012, 20:33
Why the fuck are you sending stuff to the recycle bin for? Either you want to delete that shit or you don't!
SMOKEU
19th October 2012, 09:42
Why the fuck are you sending stuff to the recycle bin for? Either you want to delete that shit or you don't!
Fuck knows, I can't see that folder even when I enabled the "show hidden folders" option. It's all sorted now though so next time I'll know how to do it properly.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.