Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with robocopy syntax to copy a few files

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
0
36
US
I have this bat file
robocopy /V /TS /FP /MOV "F:\F and D Backup\F*.bkf" G:\

I want to move all the files in the F:\F and D Backup folder that start with F and end with .bkf.
I'm not sure how to specify a folder with spaces in it. I can't remane it at this point without difficulty. And I also want it to log what it is doing.
I get this error though when it runs:
ERROR : Invalid Parameter #5 : "F:\F and D Backup\F*.bkf"

this is what it is trying to do then gives the error above
-------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------

Started : Tue Apr 10 11:28:39 2007

Source -
Dest -

Files :
Options : /V /TS /FP /COPY:DAT /MOV /R:1000000 /W:30





DougP, MCP, A+
 
Ok I got it

robocopy /MOV "F:\Backup Files" G:\ F*.bkf

DougP, MCP, A+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top