Re: Robocopy quotation marks erro
- From: "Al Dunbar" <AlanDrub@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 23 May 2007 20:42:45 -0600
"Yandos" <fakemail@xxxxxxxxxxx> wrote in message
news:f30soe$cs4$1@xxxxxxxxxxx
"Ales Baranek" <baranek@xxxxxxxxxxx> wrote in
news:OYeP2OInHHA.568@xxxxxxxxxxxxxxxxxxxx:
I'm trying to write script with robocopy command but folders with a
space in the name (c:\program files) I cannot copy.
Therefore i tried the commands bellow, one witch quotation marks and
second without it.
Command with quotation marks ends with error No Destination Directory
Specified.
How to write command correctly?
Ales
I solve problems with spaces and different czech encoding (in notepad and
in "dos") in directory
names using short names.
i.e. "c:\program files" -> "c:\progra~1" etc
use dir /x to view short names
Works, but... when you are copying folder trees, you generally want the
destination names to be the same as the source names. If you xcopied
"C:\progra~1" elsewhere, it would most probably wind up with its "long" name
and 8.3 name both being "progra~1" - unless of course, one were to script
the creation of individual folders and copy them one at a time. Yuk.
/Al
.
- References:
- Robocopy quotation marks erro
- From: Ales Baranek
- Re: Robocopy quotation marks erro
- From: Yandos
- Robocopy quotation marks erro
- Prev by Date: Re: DOS does not have complete path to a file
- Next by Date: Re: DOS does not have complete path to a file
- Previous by thread: Re: Robocopy quotation marks erro
- Next by thread: start /wait does not wait :-(
- Index(es):
Relevant Pages
|