Re: Robocopy quotation marks erro

Tech-Archive recommends: Fix windows errors by optimizing your registry




"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


.



Relevant Pages

  • Re: very slow cursor in CMD window w/Text editor?
    ... There are too many spaces in the command you are typing. ... Native MS-DOS Commands and the Space Character ... string, but you must enclose them in quotation marks (for example, ...
    (microsoft.public.windowsxp.general)
  • Re: Server Application Error When Trying To Edit Graphs
    ... I went back in to Norton AntiVirus to enable the Office plug-in. ... the regsvr32 /u command again. ... "Ernie Wong" wrote: ... >> quotation marks and retype them. ...
    (microsoft.public.powerpoint)
  • Re: Bulgarian paper on "UFO Warp Drive"?
    ... Jack Sarfatti wrote: ... I doubt the Puthoff-Davis PV approach in ... demonstrates that a mass of -0.709 MJupiter (or ...
    (sci.physics)
  • Re: owa 2003 password ok, but cannot change...
    ... Type "adsutil.vbs" (without the quotation marks), ... register CScript as the default host for VBscript, and then click OK on the ... Adsutil.vbs command again. ... > too short or something with password complexity." ...
    (microsoft.public.exchange.setup)
  • Re: Pocket PC apps accept command line parameters ?
    ... >> would a soft reset waste this, say, 'shortcut' to the app with the parms? ... Because this is the way a document is "opened", by passing its ... in quotation marks. ... If you are using straight Win32, your program will receive the command ...
    (microsoft.public.pocketpc.developer)