batch file - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 11-15-2006, 07:54 PM   #1 (permalink)
Monster Techie
 
Join Date: Dec 2003
Posts: 1,084
Send a message via Yahoo to IBMan
Default batch file

Hey guys, doing some batch file stuff for homework. I forget how to get input from a user and set it as a cmd variable

here's what my instructions are:

Create a batch file that will ask the user, after the batch file is executed, to input a first name, last name, and a username for that user. Your job is to add that person ads a local user. You will also need to create a home directory for them in D:\home\username and share the directory. In addition, you will need to set their password to 12345678 and add them to a local group called "testgroup" (which you need to create in this batch file). They should only be allowed access from 6 AM to 10 PM on Monday thru Friday and their full name should be added appropriately also.

Basically, my main question at the moment is how to get the user input after the batch file is executed(meaning i can't do this)

batchfile.bat Firstname Lastname username Password.....

and use %1, %2 and so on...

so im asking how to get user input after batch file has been executed.


thanks in advance
__________________

__________________
Server:
AMD Athlon 4000+ @ 2.4 GHz
4096 MB RAM
40 GB HDD
Dual Mirrored 500 GB HDDs
DVD-ROM Drive
Windows Server 2003 x64 R2 SP2
IBMan is offline  
Old 11-15-2006, 11:08 PM   #2 (permalink)
Monster Techie
 
Join Date: Dec 2003
Posts: 1,084
Send a message via Yahoo to IBMan
Default

nm, i got my answer.
__________________
Server:
AMD Athlon 4000+ @ 2.4 GHz
4096 MB RAM
40 GB HDD
Dual Mirrored 500 GB HDDs
DVD-ROM Drive
Windows Server 2003 x64 R2 SP2
IBMan is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 05:21 PM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.