I was able to get this working and I will put down the bat code and the "users.txt" code. Basically, I just removed the quotes from around the (users.txt) and used my usual naming convention for the for loop.
FOR /f %%c in (users.txt) DO net user /add %%c
REM You may have to adjust the net user call, but this will parse the users.txt file
I've been trying to get this script to work for about 2 hours and am not sure where i'm going wrong. I'm new to writing batch files, especially in MS-DOS but here's what I have so far.
for /f %%1 in ("users.txt") do net user /add %%1
Its "supposed" to look in users.txt and read the names of the users and create accounts for them. Inside the file i created user1 user2 user3 etc.
Is there anyone who could fill me in on what i'm missing or what i set up wrong ? thanks