Vista64: ROBOCOPY fails with shadow copy device name

Discussion in 'Windows Vista' started by kilves76, Oct 15, 2009.

  1. kilves76

    kilves76 MDL Novice

    Oct 13, 2009
    I just can't get an advanced backup copy script to work because

    robocopy \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy37\Windows t:\destination /e /b /copyall
    (there is no space in 'Windows', the board introduces it)

    fails with

    2009/10/15 15:31:32 ERROR 123 (0x0000007B) Getting File System Type of Source \\
    The filename, directory name, or volume label syntax is incorrect.

    Source - \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy37\Windows\
    Dest : t:\destination\

    in all I have isolated the problem to the device name use, but there shouldn't be anything wrong with it, because COPY works with it ok, and vshadow -q outputs this

    * SNAPSHOT ID = {3cc5b728-bf85-422a-bf98-dff9eb497ec1} ...
    - Shadow copy Set: {0baefca3-7f14-4aa9-8cad-48915c59f8c0}
    - Original count of shadow copies = 1
    - Original Volume name: \\?\Volume{96162222-1508-11de-872f-806e6f6e6963}\ [C:\]
    - Creation Time: 15-Oct-09 15:07:44
    - Shadow copy device name: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy37
    - Originating machine: XXX
    - Service machine: XXX
    - Not Exposed
    - Provider id: {b5946137-7b9f-4925-af80-51abd60b20d5}
    - Attributes: No_Auto_Release Persistent Differential

    ANY ideas?!? :confused: I am not knowledgeable in windows device names so if there's a "catch" with using \\?\ let me know...only tried \\.\ instead, similar failure.

    (there is nothing wrong per se, if I attach this device name to a drive letter or path, robocopy will work, but it'd be way nicer to do without as there's lots of gotchas to guard for if the letter/path is not available)
  2. kilves76

    kilves76 MDL Novice

    Oct 13, 2009
    Forgot to specify that this is on Vista 64 SP2.