Solved

robocopy

Posted on 2016-08-25
6
60 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 52

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
Why won’t your email signature format correctly?

Struggling to get your corporate email signatures to format correctly? Does the logo keep resizing? Is the text appearing too big? What can you do to prevent this? Find out how you can save your signatures today.

 

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

Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

920 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now