Solved

robocopy

Posted on 2016-08-25
6
64 Views
Last Modified: 2016-08-25
Oh dear experts

I want robocopy this


robocopy.exe E:\Program Files\Microsoft SQL Server\MSSQL12.LIPSA\MSSQL\Backup\  f:\Bases\  /e /r:0 /w:0

do not work
please you guys!
0
Comment
Question by:edo60
  • 3
  • 2
6 Comments
 
LVL 52

Expert Comment

by:Joe Winograd, EE MVE
ID: 41770708
Assuming that the paths are correct on E; and F:, the problem is probably that there are spaces in the E; folder name, so you need quotes around it. In other words:
robocopy.exe "E:\Program Files\Microsoft SQL Server\MSSQL12.LIPSA\MSSQL\Backup\"  f:\Bases\  /e /r:0 /w:0

Open in new window

Regards, Joe
0
 

Assisted Solution

by:edo60
edo60 earned 0 total points
ID: 41770710
says no destination??
regards
0
 
LVL 53

Accepted Solution

by:
Bill Prew earned 500 total points
ID: 41770720
Robocopy doesn't like a backslash at the end of a quoted path, try this:

robocopy.exe "E:\Program Files\Microsoft SQL Server\MSSQL12.LIPSA\MSSQL\Backup"  "f:\Bases"  /e /r:0 /w:0

Open in new window

~bp
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Closing Comment

by:edo60
ID: 41770725
Oh you guys
tsm!!
regards
0
 
LVL 52

Expert Comment

by:Joe Winograd, EE MVE
ID: 41770726
The syntax of robocopy is:
ROBOCOPY source destination [file [file]...] [options]

So if it says no destination, that likely means there's no F: drive, because even if \Bases\ doesn't exist, it would create the folder on the F: drive — if there is one!

Please post a screenshot of the command prompt where you are issuing the robocopy.
0
 
LVL 52

Expert Comment

by:Joe Winograd, EE MVE
ID: 41770733
> Robocopy doesn't like a backslash at the end of a quoted path

Bill,
Robocopy is perfectly fine with a backslash at the end:

robocopy with backslashes
The quotes were the problem, not the backslashes! Regards, Joe

Update: Oops! Turns out that backslashes are ok at the end of non-quoted paths but are not ok at the end of quoted paths. Talk about weird! My apologies, Bill, you are correct. That said, my comment about the quotes was at least half of the problem — and half of the solution. :)

So note that this also works:
robocopy.exe "E:\Program Files\Microsoft SQL Server\MSSQL12.LIPSA\MSSQL\Backup"  f:\Bases\  /e /r:0 /w:0

Open in new window

That is, a backslash at the end of f:\Bases\ — but no quotes! Cheers, Joe
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question