我目前在运行批处理文件时遇到这些错误:
System error 1379 has occurred.
The specified local group already exists.
Press any key to continue . . .
The system cannot find the file users.csv. {This is where my problem lies}
Press any key to continue . . .
There is no such global user or group: users.csv
我的批处理文件
@echo off
REM Adding a local group
net localgroup NEWDOSGROUP /Comment:"New Group Assignment" /add
pause
REM Add all the users from a .csv file
FOR /F "tokens=1,2 delims=," %%G IN (users.csv) DO (
net adduser
pause
REM Adding users to a local group
FOR /F "tokens=1,2 delims=," %%a IN ("users.csv") Do (
net localgroup NEWDOSGROUP %%a /add
)
pause
任何帮助都会非常感谢。