batch file

Status
Not open for further replies.

IBMan

Daemon Poster
Messages
1,084
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
 
Status
Not open for further replies.
Back
Top Bottom