!!!!Urgent
Can somone Help me with this please Urgent!!!
For this you need to write two programs one in MS-DOS batch language and one in bash shellscript. Both will do the same task, to create files containing user records for another application (you do not need to worry what this is or write any aspect of it). Each of your programs will need to work in two modes, interactive mode and command line mode. Each will gather from the user their name and a username (which they can choose) which it will write to a file together with the current date and time) which must be stored in a folder called “user_records” (which your program will need to create if it does not exist). In the MS-DOS version user_records will be in “c:\”, in the bash version it will be in the current user’s login directory.
The interactive mode will ask the user two questions, “What is your name?” (and get their reply) and “What is your chosen username?” (and again get their reply) you will need to add more to this such as an introduction at the start of the program, and report if the file was created etc.
Say for example the user entered “Fred Bloggs” in answer to the first question and “fb1” to the second, and the date and time were 15/01/2017:20:21:02 then a file would be created in user_records named as per the username as fb1.txt (assuming this did not already exist – if it does exist your program should generate an error message) which would contain:
Fred Bloggs
fb1
15/01/2017:20:21:02
For the non-interactive mode the program would take the persons name and username on the command line, so, say the program was called “makeuser.bat” I might type in:
makeuser.bat “Fred Bloggs” fb1
and without asking the user any questions is should create the file as above. This version should also check that that exactly two parameters were given on the command line. If only one is given or more than two it should generate an error message.