I'm trying to create a login script that prompts the user to enter predefined keywords eg. "acrobat", "nav", "notes" which then stores the users input into a sequential text file eg.

acrobat
nav
notes

The text file can then be read by another script, which given the contents of the text file, loads applications eg. "acrobat" loads the acrobat reader installation. see my previous post "deployment scripts"

I have already got the second script reading from the text file, but I need some help in creating the text file from login??

I've pulled down the following code from http://www.robvanderwoude.com and it creates a temporary file from the user input, but only allows one line to be entered.

:: Create a temporary Kix script that will
:: in turn create a temporary batch file:
> %TEMP%.\UserIn.kix ECHO REDIRECTOUTPUT( "NUL" )
>>%TEMP%.\UserIn.kix ECHO GETS $UserIn
>>%TEMP%.\UserIn.kix ECHO IF OPEN( 1, "@SCRIPTDIR\UserIn.bat", 5 ) = 0
>>%TEMP%.\UserIn.kix ECHO WRITELINE( 1, "SET UserIn=" + $UserIn )
>>%TEMP%.\UserIn.kix ECHO ELSE
>>%TEMP%.\UserIn.kix ECHO ? "Error opening temporary file, errorcode = " + @ERROR
>>%TEMP%.\UserIn.kix ECHO ENDIF
:: Prompt for user input:
ECHO Type anything you like and press Enter when finished:
:: retrieve user input using the Kix script, and
:: then store the result in a temporary batch file:
if
KIX32.EXE %TEMP%.\UserIn.kix
:: Call the temporary batch file to store
:: the result in an environment variable:
CALL %TEMP%.\UserIn.bat
:: Clean up the temporary files:
IF EXIST %TEMP%.\UserIn.* DEL %TEMP%.\UserIn.*
:: Finaly, display the result:
ECHO You typed: %UserIn%

Is it possible to edit this file so it allows for mulitple line entries which creates a text file or am I better off editing my "deployment script" to read the one line created in the temporary file and for each space within the string ("acrobat nav notes")pass the text into an array and then create a text file from the array??? The reason I need a text file is because some of the applications need the pc to restart, so by having a text file of programs to install, when the pc is rebooted the login script reads the text file which saves the user needing to re-type the applications they want installed.

I also need flag that tells the login script that a the text file has been created so dont prompt the user for input...a simple "if exists" should to the trick.

Any help would be greatly appreciated.