• we do have robocopy. The issue is to pass T-SQL declared and set variables to the SQLCMD. I just can't get the syntax right......

    From SQLCMD to T-SQL is easy, but the opposite, no so easy.

    In the meantime I created a SQL job and update its steps by T-SQl and then start it.