Computing.Net > Forums > Windows NT > Creating users account

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Creating users account

Reply to Message Icon

Name: Ken
Date: September 18, 2001 at 01:15:12 Pacific
Comment:

Hi

I have a batch file that I can create new users account, groups and share directories on an NT server.

I run the batch file and enter user name, group and it does it automatically but I want to do it for 200 users.

How can I do this if I have the list of names in a word file?

Thanks

Ken



Sponsored Link
Ads by Google

Response Number 1
Name: Larry
Date: September 18, 2001 at 18:26:02 Pacific
Reply:

Using the FOR command in a script to call a seperate source file (something like users.txt). I'd personally use 3 files to accomplish

theoretical contents of first batch file:
for /f %%i in (users.txt) do go.bat %%1

theoretical contents of go.bat file:
whatever_command %1

note: %1 is the variable passed in by the do command in the 1st batch file

Play around with FOR. It's pretty cool, but works slightly different between major OS versions.


0
Reply to Message Icon

Related Posts

See More


BIG Wordpad file can't be... delay a script



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: Creating users account

User Account for shell script www.computing.net/answers/windows-nt/user-account-for-shell-script/9426.html

New user Accounts www.computing.net/answers/windows-nt/new-user-accounts/13064.html

Domain user accounts www.computing.net/answers/windows-nt/domain-user-accounts/19194.html