Bit of help please? Thanks

Batch, ASP, JScript, Kixtart, etc.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
d54
Posts: 2
Joined: Wed Mar 23, 2011 2:22 pm

Bit of help please? Thanks

Post by d54 » Wed Mar 23, 2011 2:28 pm

I am completely lost with this problem (as I basically have no idea about scripting) so any help would be appreciated.

Part1: Enter the script titled (with argument username): newuser username, (contained here) into Notepad and execute this script with arguments as: newuser Ted, newuser Fred, newuser Tom, and newuser John. Construct in Notepad a text file del_list.txt which contains Fred(enter) Tom(enter) Ted(enter) John(enter), that is, one name per line. For the last line, enter a name that has not been added to users using newuser, such as Pat. Save del_list.txt and close Notepad. Now enter the script titled (with argument textfile): remuser textfile, (also contained here) into Notepad and execute this script and argument: remuser del_list.txt. Take screen captures of the scripts and execution results.

Part 2:
Now change the name and contents of newuser username to newusers textfile where you provide the changes to the script replacing adding one user at a time with adding a list of users contained in a text file (just as was done in remuser textfile). Now enter the script titled (with argument textfile): newusers del_list.txt, (previously defined) and execute this script and argument. Take screen captures of both your new script and the execution results. Rerun remuser del_list.txt and retake screen captures of the scripts and execution results.

Yeah... no idea where to start or what to do at all for that matter.

User avatar
d54
Posts: 2
Joined: Wed Mar 23, 2011 2:22 pm

Bit of help please? Thanks

Post by d54 » Wed Mar 23, 2011 2:28 pm

I am completely lost with this problem (as I basically have no idea about scripting) so any help would be appreciated.

Part1: Enter the script titled (with argument username): newuser username, (contained here) into Notepad and execute this script with arguments as: newuser Ted, newuser Fred, newuser Tom, and newuser John. Construct in Notepad a text file del_list.txt which contains Fred(enter) Tom(enter) Ted(enter) John(enter), that is, one name per line. For the last line, enter a name that has not been added to users using newuser, such as Pat. Save del_list.txt and close Notepad. Now enter the script titled (with argument textfile): remuser textfile, (also contained here) into Notepad and execute this script and argument: remuser del_list.txt. Take screen captures of the scripts and execution results.

Part 2:
Now change the name and contents of newuser username to newusers textfile where you provide the changes to the script replacing adding one user at a time with adding a list of users contained in a text file (just as was done in remuser textfile). Now enter the script titled (with argument textfile): newusers del_list.txt, (previously defined) and execute this script and argument. Take screen captures of both your new script and the execution results. Rerun remuser del_list.txt and retake screen captures of the scripts and execution results.

Yeah... no idea where to start or what to do at all for that matter.

jvierra
Posts: 14045
Joined: Tue May 22, 2007 9:57 am
Contact:

Bit of help please? Thanks

Post by jvierra » Wed Mar 23, 2011 2:59 pm

Start by asking a single question.

You could also look in the script sharing section for eample scripts and study how they work.

There are alse numerous books on Windows, scripting and basic programming that are available. Pick one that matches your level of skill.

Look also at the following:
http://technet.microsoft.com/en-us/libr ... S.10).aspx
http://technet.microsoft.com/en-us/libr ... S.10).aspx



jvierra2011-03-26 10:23:37

Locked