Windows Server wbadmin recover with commas

Posted by dlp on Server Fault See other posts from Server Fault or by dlp
Published on 2013-10-23T14:15:18Z Indexed on 2013/10/23 15:57 UTC
Read the original article Hit count: 211

I want to do a recovery of files with commas in their names from the command line, ala:

wbadmin start recovery -version:10/01/2013-12:00 -itemType:File -overwite:Overwrite -quiet "-Items:C:\Path\To\File, With Comma.txt,C:\Path\To\File 2, With Comma.txt"

So there are two files:

  1. C:\Path\To\File, With Comma.txt
  2. C:\Path\To\File 2, With Comma.txt

The problem is wbadmin assumes commas separates each file, so it sees 4 files specified instead of 2. I've tried putting a \ in front of commas that are part of the file names like so:

wbadmin start recovery -version:10/01/2013-12:00 -itemType:File -overwite:Overwrite -quiet "-Items:C:\Path\To\File\, With Comma.txt,C:\Path\To\File 2\, With Comma.txt"

but it doesn't work, it just says there's a syntax error. The documentation on Technet doesn't seem to mention anything that'll help either.

OS is Windows Server 2008 R2.

A clarifying comment: I've changed the file names to be different than the actual names to be less revealing, but I also see I dumbed it down too much. The comma can occur either in the file name itself like C:\Path\To\File, With Comma.txt' or in the path to the file, like:C:\Path, To\Other\File.txt`.

© Server Fault or respective owner

Related posts about windows-server-2008-r2

Related posts about file-recovery

  • mac osX file recovery

    as seen on Super User - Search for 'Super User'
    I thought that all operating systems would merge folder content when being moved to the same location. Imagine my surprise when that didn't happen and I have hundreds, if not thousands of files that have gone missing and are nowhere to be found. Because they were not "deleted" they are not in the… >>> More

  • Mac OS X file recovery

    as seen on Super User - Search for 'Super User'
    I thought that all operating systems would merge folder content when being moved to the same location. Imagine my surprise when that didn't happen and I have hundreds, if not thousands of files that have gone missing and are nowhere to be found. Because they were not "deleted" they are not in the… >>> More

  • help! corrupt file recovery

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    My supervisor computer crashed last night, and I'm trying to help him out. He made an R script but when he tried to open it, it was empty. But for some reason the file is 7.9kb so it should not be empty i think... anyway when i tried to open it, Gedit gave this error: "The file you opened has… >>> More

  • Expectations for NTFS file recovery

    as seen on Super User - Search for 'Super User'
    Yesterday I booted my XP system, and as I looked up a minute later I saw the light blue screen and tail-end of that pre-boot diskcheck Windows sometimes does if it finds an error (or was previously told to run a diskcheck drung the next boot). I didn't worry about it at the moment... But then I… >>> More

  • reclaime like, recovery software

    as seen on Super User - Search for 'Super User'
    I need a recovery software that has the features of reclaime file recovery. Those are, to be able to read image files, to keep folder structure, to be as efficient but to be free. I can't afford reclaime and all free software that i know out there either support folder structure but cannot read an… >>> More