Solved

robocopy

Posted on 2016-08-25
6
76 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 54

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
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 55

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
Don't Miss ATEN at InfoComm 2017!

Visit booth #2167 to see the  new ATEN VM3200 32 x 32 Modular Matrix Switch. Other highlights include the VE8950 4K HDMI Over IP Extender, VS1912 12-Port DP Video Wall Media Player  and VK2100 ATEN Control System. Register now with Free Pass Code ATEN288!

 

Author Closing Comment

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

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
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 54

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
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

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Determining the an SCCM package name from the Package ID
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
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…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

726 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