Cái sai của bạn nằm ở chỗ copy rồi dán hết vào 1 lần, thay vì vậy ta cứ dán từng lệnh xem nó báo lỗi rồi hãy lên đây hỏi.
Còn để thêm license của bản Volume Mak vào máy để kích hoạt Office bằng key Mak thì chỉ cần 2 dòng lệnh là đủ.
Mã:
for %a in (4,5,6) do if exist "%ProgramFiles%\Microsoft Office\Office1%a\ospp.vbs" (cd /d "%ProgramFiles%\Microsoft Office\Office1%a") else (cd /d "%ProgramFiles% (x86)\Microsoft Office\Office1%a")&&cls&&echo off
Dành cho Office 2016
for /f %i in ('dir /b ..\root\Licenses16\ProPlusVL_MAK-*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%i"
Dành cho Office 2019
for /f %i in ('dir /b ..\root\Licenses16\ProPlus2019VL_MAK_AE*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%i"
Dành cho Office 2021
for /f %i in ('dir /b ..\root\Licenses16\ProPlus2021VL_MAK_AE*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%i"
ỉ