• Worked good, after figuring out not to use quotes for the input variables, and then a problem encountered when the sqlcmd couldn't log on:

    Moving files...

    Restarting service with /f and trace flag 3608

    The SQL Server (MSSQLSERVER) service is starting..

    The SQL Server (MSSQLSERVER) service was started successfully.

    Msg 18461, Level 14, State 1, Server L00013756, Line 1

    Login failed for user 'dommainname\username(hidden)'. Reason: Server is in single user mode. Only one administrator can connect at this time.

    Msg 18461, Level 14, State 1, Server L00013756, Line 1

    Login failed for user 'dommainname\username(hidden)'. Reason: Server is in single user mode. Only one administrator can connect at this time.

    Msg 18461, Level 14, State 1, Server L00013756, Line 1

    Login failed for user 'dommainname\username(hidden)'. Reason: Server is in single user mode. Only one administrator can connect at this time.

    The SQL Server (MSSQLSERVER) service is stopping.

    The SQL Server (MSSQLSERVER) service was stopped successfully.

    Restarting service MSSQLSERVER in normal mode

    The SQL Server (MSSQLSERVER) service is starting.

    Verifying new location of system databases...

    HResult 0x2, Level 16, State 1

    Named Pipes Provider: Could not open a connection to SQL Server [2].

    I started it back up using the net start /F /T3608 flags, ran the 'ALTER DATABASE mssqlsystemresource' scripts after logging on cmd line with sqlcmd. Then it was all good.

    I also like the LOG directory to be in similar location, but that was easily changed.