Scripts Thread, Robocopy - Transfer files where the path has spaces? in Coding and Web Development; Morning, First off sorry if this is in the wrong place.
I am looking for a little bit of help ...
20th July 2011, 09:42 AM #1
Robocopy - Transfer files where the path has spaces?
Morning, First off sorry if this is in the wrong place.
I am looking for a little bit of help - I am trying to transfer some files from a location on one server to a location on another server using Robocopy. However the path and destination both have spaces in them for example of the code below
Robocopy \\servername\driveletter\folder name with spaces \\Newservername\driverletter\exact foldername with spaces\placetocopyfiles /copyall /e /r:3 w:1
When i run it i get an error saying that the destination contains an invalid perameter and surrounds the destinations with " " marks.
Tried putting " " marks all over the show and nothing seems to work. Will robocopy handle what i want it to do and if so how?
20th July 2011, 09:47 AM #2
This is what I use,
Your code should read,
robocopy "\\servername\directory name" "\\goingto\directory name" /e /sec /copyall /v /eta /tee /item
Robocopy "\\servername\driveletter\folder name with spaces" "\\Newservername\driverletter\exact foldername with spaces\placetocopyfiles" /copyall /e /r:3 w:1
Last edited by chris_uk; 20th July 2011 at 09:55 AM.
20th July 2011, 10:00 AM #3
Cheers for reply Chris, I think thats nailed it! I put " before the \\servername and after the directory name as well as removing the \ at the end! Looks like it running through!
Originally Posted by chris_uk
Today maybe a good day afterall!
By Mr_T in forum Educational Software
Last Post: 9th February 2011, 08:52 PM
By alexharrington in forum Scripts
Last Post: 16th November 2009, 11:28 AM
By timbo343 in forum Windows
Last Post: 14th November 2008, 07:14 PM
Last Post: 11th December 2006, 04:32 PM
Users Browsing this Thread
There are currently 3 users browsing this thread. (0 members and 3 guests)