Computer Hope

Microsoft => Microsoft DOS => Topic started by: davidsavon on January 29, 2014, 07:13:29 AM

Title: Batch Error
Post by: davidsavon on January 29, 2014, 07:13:29 AM
I created the following batch file to back up my Outlook file:
This is the syntax I used in both attempts:

Copy C:\Users\Owner\AppData\Local\Microsoft\Outlook\Outlook.ost C:\Users\Owner\Dropbox\David Outlook and Temp
pause

Copy C:\Owner\AppData\Local\Microsoft\Outlook\Outlook.ost C:\Owner\Dropbox\David Outlook and Temp
pause

I receive the following error with either:
"The system cannot find the path specified."

Can anyone help?

Thanks, in advance!

David
Title: Re: Batch Error
Post by: Salmon Trout on January 29, 2014, 08:11:38 AM
Any path and file name that contains spaces needs to have quote marks

Like this

Copy "C:\Users\Owner\AppData\Local\Microsoft\Outlook\Outlook.ost" "C:\Users\Owner\Dropbox\David Outlook and Temp"

so try that.