Question: I need a little help with one batch script and `xcopy`. I have a folder with a lot of different folders inside. For example: "Test" is the primary directory and inside I have `New folder 1`, `New folder 2`, `New folder 3`... Every week these folders have to copy to different servers. 

My script is: 

```
if exist "%dir%\New folder 1" (
  xcopy %dir%\New folder 1 C:\Users\user1\New folder1 /i /q /s /y /z
  echo New folder 1 copied successfully
) 
if exist "%dir%\New folder 2" (
  xcopy %dir%\New folder 2 C:\Users\user1\New folder2 /i /q /s /y /z
  echo New folder 2 copied successfully
)

```

I need to update my script to show me the errors on `cmd` when `xcopy` cannot copy some files.

Answer: 
There is a simple fix using `table-cell`, which you hinted at in your fiddle:

```
#right {
    height: 450px;
    width: 50%;
    background-color: #CCCCFF;
    font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 14px;
    color: #333;
    display: table-cell;
    vertical-align: middle;
}

```

In your original example, you declared `float: left` and as a result `div#right` will not behave like a `table-cell` since its `display` value is computed to be `block`, so you lose the vertical alignment control.

Reference: To learn more about computer value of `display`, see:  

<http://www.w3.org/TR/CSS2/visuren.html#dis-pos-flo>
I usually do this through an onload/window.resize event in jQuery because I do not have to change how my DOM is layed out or fight with CSS.

[JSFiddle](http://jsfiddle.net/pqTqH/4/)

```
$(function() {
    centerTable();
    $(window).resize(centerTable);
});

function centerTable()
{
    var right = $('#right');
    var table = $('#right table');
    $('#right table').css('margin-top', ((right.height() - table.height()) / 2) + 'px');
}

```

I've updated your jsFiddle example with a jquery onload event. If you do not care about window resize you can run the code once in your onload event. This could also be shortened to a 1 liner by not using the 2 vars.